Ejemplo n.º 1
0
    def __format__(self, format_specification=''):
        r'''Formats burnish specifier.

        ..  container:: example

            ::

                >>> burnish_specifier = rhythmmakertools.BurnishSpecifier(
                ...     lefts=(-1, 0),
                ...     left_lengths=(1,),
                ...     )

            ::

                >>> print format(burnish_specifier)
                rhythmmakertools.BurnishSpecifier(
                    lefts=(-1, 0),
                    left_lengths=(1,),
                    )

        Returns string.
        '''
        return AbjadObject.__format__(
            self,
            format_specification=format_specification,
            )
Ejemplo n.º 2
0
    def __format__(self, format_specification=''):
        r'''Formats sequence.

        ..  container:: example

            Prints format:

            ::

                >>> print(format(Sequence(1, 2, 3, 4, 5, 6)))
                sequencetools.Sequence(1, 2, 3, 4, 5, 6)

        Returns string.
        '''
        return AbjadObject.__format__(
            self,
            format_specification=format_specification,
            )
    def __format__(self, format_specification=''):
        r'''Formats duration spelling specifier.

        ..  container:: example

            ::

                >>> specifier = rhythmmakertools.DurationSpellingSpecifier()
                >>> print format(specifier)
                rhythmmakertools.DurationSpellingSpecifier(
                    decrease_durations_monotonically=True,
                    )

        Returns string.
        '''
        return AbjadObject.__format__(
            self,
            format_specification=format_specification,
            )
Ejemplo n.º 4
0
    def __format__(self, format_specification=''):
        r'''Formats beam specifier.

        ..  container:: example

            ::

                >>> specifier = rhythmmakertools.BeamSpecifier()
                >>> print format(specifier)
                rhythmmakertools.BeamSpecifier(
                    beam_each_division=True,
                    beam_divisions_together=False,
                    )

        Returns string.
        '''
        return AbjadObject.__format__(
            self,
            format_specification=format_specification,
            )