当前位置: 首页>>代码示例>>Python>>正文


Python AbjadValueObject.__format__方法代码示例

本文整理汇总了Python中abjad.tools.abctools.AbjadValueObject.__format__方法的典型用法代码示例。如果您正苦于以下问题:Python AbjadValueObject.__format__方法的具体用法?Python AbjadValueObject.__format__怎么用?Python AbjadValueObject.__format__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在abjad.tools.abctools.AbjadValueObject的用法示例。


在下文中一共展示了AbjadValueObject.__format__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __format__

# 需要导入模块: from abjad.tools.abctools import AbjadValueObject [as 别名]
# 或者: from abjad.tools.abctools.AbjadValueObject import __format__ [as 别名]
    def __format__(self, format_specification=''):
        r'''Formats burnish specifier.

        ..  container:: example

            ::

                >>> burnish_specifier = rhythmmakertools.BurnishSpecifier(
                ...     left_classes=[Rest, 0],
                ...     left_counts=[1],
                ...     )

            ::

                >>> print(format(burnish_specifier))
                rhythmmakertools.BurnishSpecifier(
                    left_classes=(
                        scoretools.Rest,
                        0,
                        ),
                    left_counts=(1,),
                    )

        Returns string.
        '''
        return AbjadValueObject.__format__(
            self,
            format_specification=format_specification,
            )
开发者ID:jefftrevino,项目名称:abjad,代码行数:31,代码来源:BurnishSpecifier.py

示例2: __format__

# 需要导入模块: from abjad.tools.abctools import AbjadValueObject [as 别名]
# 或者: from abjad.tools.abctools.AbjadValueObject import __format__ [as 别名]
    def __format__(self, format_specification=''):
        r'''Formats incise specifier.

        ..  container:: example

            **Example 1.**

            ::

                >>> incise_specifier = rhythmmakertools.InciseSpecifier(
                ...     prefix_talea=[-1],
                ...     prefix_counts=[0, 1],
                ...     suffix_talea=[-1],
                ...     suffix_counts=[1],
                ...     talea_denominator=16,
                ...     )

            ::

                >>> print(format(incise_specifier))
                rhythmmakertools.InciseSpecifier(
                    prefix_talea=(-1,),
                    prefix_counts=(0, 1),
                    suffix_talea=(-1,),
                    suffix_counts=(1,),
                    talea_denominator=16,
                    )

        Returns string.
        '''
        return AbjadValueObject.__format__(
            self,
            format_specification=format_specification,
            )
开发者ID:odub,项目名称:abjad,代码行数:36,代码来源:InciseSpecifier.py

示例3: __format__

# 需要导入模块: from abjad.tools.abctools import AbjadValueObject [as 别名]
# 或者: from abjad.tools.abctools.AbjadValueObject import __format__ [as 别名]
    def __format__(self, format_specification=''):
        r'''Formats beam specifier.

        ..  container:: example

            ::

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

        Returns string.
        '''
        return AbjadValueObject.__format__(
            self,
            format_specification=format_specification,
            )
开发者ID:ajyoon,项目名称:abjad,代码行数:21,代码来源:BeamSpecifier.py

示例4: __format__

# 需要导入模块: from abjad.tools.abctools import AbjadValueObject [as 别名]
# 或者: from abjad.tools.abctools.AbjadValueObject import __format__ [as 别名]
    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 AbjadValueObject.__format__(
            self,
            format_specification=format_specification,
            )
开发者ID:jefftrevino,项目名称:abjad,代码行数:21,代码来源:DurationSpellingSpecifier.py

示例5: __format__

# 需要导入模块: from abjad.tools.abctools import AbjadValueObject [as 别名]
# 或者: from abjad.tools.abctools.AbjadValueObject import __format__ [as 别名]
    def __format__(self, format_specification=''):
        r'''Formats beat grouper.

        ..  container:: example

            ::

                >>> grouper = makertools.PartitionDivisionCallback()
                >>> print(format(grouper))
                makertools.PartitionDivisionCallback(
                    fuse_assignable_total_duration=False,
                    append_remainder=False,
                    remainder_direction=Right,
                    )

        Returns string.
        '''
        return AbjadValueObject.__format__(
            self,
            format_specification=format_specification,
            )
开发者ID:andrewyoung1991,项目名称:abjad,代码行数:23,代码来源:PartitionDivisionCallback.py


注:本文中的abjad.tools.abctools.AbjadValueObject.__format__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。