Example #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,
            )
Example #2
0
 def _get_tools_package_qualified_keyword_argument_repr_pieces(
     self, is_indented=True):
     filtered_result = []
     result = \
         AbjadObject._get_tools_package_qualified_keyword_argument_repr_pieces(
         self, is_indented=is_indented)
     for string in result:
         if not 'callbacks=musicexpressiontools.CallbackInventory([])' \
             in string:
             filtered_result.append(string)
     return filtered_result
Example #3
0
    def __repr__(self):
        r'''Gets interpreter representation of sequence.

        ..  container:: example

            ::

                >>> Sequence(1, 2, 3, 4, 5, 6)
                Sequence(1, 2, 3, 4, 5, 6)

        Returns string.
        '''
        return AbjadObject.__repr__(self)
    def __repr__(self):
        r'''Gets interpreter representation of duration spelling specifier.

        ..  container:: example

            ::

                >>> rhythmmakertools.DurationSpellingSpecifier()
                DurationSpellingSpecifier(decrease_durations_monotonically=True)

        Returns string.
        '''
        return AbjadObject.__repr__(self)
Example #5
0
    def __repr__(self):
        r'''Gets interpreter representation of sequence.

        ..  container:: example

            ::

                >>> Sequence(1, 2, 3, 4, 5, 6)
                Sequence(1, 2, 3, 4, 5, 6)

        Returns string.
        '''
        return AbjadObject.__repr__(self)
Example #6
0
    def __repr__(self):
        r'''Gets interpreter representation of beam specifier.

        ..  container:: example

            ::

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

        Returns string.
        '''
        return AbjadObject.__repr__(self)
Example #7
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,
            )
Example #8
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,
            )
Example #10
0
    def __repr__(self):
        r'''Gets interpreter representation of burnish specifier.

        ..  container:: example

            ::

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

            ::

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

        Returns string.
        '''
        return AbjadObject.__repr__(self)
Example #11
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,
            )
Example #12
0
    def __ne__(self, expr):
        r'''Is true when `expr` does not equal burnish specifier.

        ..  container:: example

            ::

                >>> burnish_specifier_1 = rhythmmakertools.BurnishSpecifier(
                ...     lefts=(-1, 0),
                ...     left_lengths=(1,)
                ... )
                >>> burnish_specifier_2 = rhythmmakertools.BurnishSpecifier(
                ...     lefts=(-1, 0),
                ...     left_lengths=(1,)
                ... )
                >>> burnish_specifier_3 = rhythmmakertools.BurnishSpecifier()

            ::

                >>> burnish_specifier_1 != burnish_specifier_1
                False
                >>> burnish_specifier_1 != burnish_specifier_2
                False
                >>> burnish_specifier_1 != burnish_specifier_3
                True
                >>> burnish_specifier_2 != burnish_specifier_1
                False
                >>> burnish_specifier_2 != burnish_specifier_2
                False
                >>> burnish_specifier_2 != burnish_specifier_3
                True
                >>> burnish_specifier_3 != burnish_specifier_1
                True
                >>> burnish_specifier_3 != burnish_specifier_2
                True
                >>> burnish_specifier_3 != burnish_specifier_3
                False

        Returns boolean.
        '''
        return AbjadObject.__ne__(self, expr)
Example #13
0
 def _get_tools_package_qualified_repr_pieces(self, is_indented=True):
     return [''.join(
         AbjadObject._get_tools_package_qualified_repr_pieces(
             self, is_indented=False))]