Exemplo n.º 1
0
 def _format_content_pieces(self):
     result = []
     if self.has_non_power_of_two_denominator and type(self) is Measure:
         string = "\t\\scaleDurations #'({} . {}) {{"
         string = string.format(
             self.implied_prolation.numerator,
             self.implied_prolation.denominator,
             )
         result.append(string)
         pieces = FixedDurationContainer._format_content_pieces(self)
         pieces = ['\t' + x for x in pieces]
         result.extend(pieces)
         result.append('\t}')
     else:
         result.extend(FixedDurationContainer._format_content_pieces(self))
     return result
Exemplo n.º 2
0
 def _format_content_pieces(self):
     result = []
     if self.has_non_power_of_two_denominator and \
         type(self) is Measure and \
         self.implicit_scaling:
         string = "\t\\scaleDurations #'({} . {}) {{"
         string = string.format(
             self.implied_prolation.numerator,
             self.implied_prolation.denominator,
         )
         result.append(string)
         pieces = FixedDurationContainer._format_content_pieces(self)
         pieces = ['\t' + x for x in pieces]
         result.extend(pieces)
         result.append('\t}')
     else:
         result.extend(FixedDurationContainer._format_content_pieces(self))
     return result
Exemplo n.º 3
0
 def _format_content_pieces(self):
     from abjad.tools import systemtools
     result = []
     if self.has_non_power_of_two_denominator and \
         type(self) is Measure and \
         self.implicit_scaling:
         indent = systemtools.LilyPondFormatManager.indent
         string = "{}\\scaleDurations #'({} . {}) {{"
         string = string.format(
             indent,
             self.implied_prolation.numerator,
             self.implied_prolation.denominator,
         )
         result.append(string)
         pieces = FixedDurationContainer._format_content_pieces(self)
         pieces = [indent + x for x in pieces]
         result.extend(pieces)
         result.append(indent + '}')
     else:
         result.extend(FixedDurationContainer._format_content_pieces(self))
     return result
Exemplo n.º 4
0
 def _format_content_pieces(self):
     from abjad.tools import systemtools
     result = []
     if self.has_non_power_of_two_denominator and \
         type(self) is Measure and \
         self.implicit_scaling:
         indent = systemtools.LilyPondFormatManager.indent
         string = "{}\\scaleDurations #'({} . {}) {{"
         string = string.format(
             indent,
             self.implied_prolation.numerator,
             self.implied_prolation.denominator,
             )
         result.append(string)
         pieces = FixedDurationContainer._format_content_pieces(self)
         pieces = [indent + x for x in pieces]
         result.extend(pieces)
         result.append(indent + '}')
     else:
         result.extend(FixedDurationContainer._format_content_pieces(self))
     return result