DurationSpecifier¶
-
class
abjadext.rmakers.DurationSpecifier.
DurationSpecifier
(*, decrease_monotonic=True, forbid_meter_rewriting=None, forbidden_duration=None, rewrite_meter=None, rewrite_rest_filled=None, spell_metrically=None)¶ Duration specifier.
Attributes Summary
__format__
Formats duration specifier. __repr__
Gets interpreter representation. decrease_monotonic
Is true when all durations should be spelled as a tied series of monotonically decreasing values. forbid_meter_rewriting
Is true when meter rewriting is forbidden. forbidden_duration
Gets forbidden written duration. rewrite_meter
Is true when all output divisions should rewrite meter. rewrite_rest_filled
Is true when rhythm-maker rewrites rest-filled divisions. spell_metrically
Is true when durations should spell according to approximate common practice understandings of meter. Special methods
-
(
AbjadValueObject
).__copy__
(*arguments)¶ Copies Abjad value object.
Returns new Abjad value object.
-
(
AbjadValueObject
).__eq__
(argument)¶ Is true when all initialization values of Abjad value object equal the initialization values of
argument
.Returns true or false.
-
__format__
(format_specification='')¶ Formats duration specifier.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> abjad.f(specifier) abjadext.rmakers.DurationSpecifier( decrease_monotonic=True, )
Return type: str
-
(
AbjadValueObject
).__hash__
()¶ Hashes Abjad value object.
Returns integer.
-
__repr__
()¶ Gets interpreter representation.
>>> abjadext.rmakers.DurationSpecifier() DurationSpecifier(decrease_monotonic=True)
Return type: str
Read-only properties
-
decrease_monotonic
¶ Is true when all durations should be spelled as a tied series of monotonically decreasing values.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.decrease_monotonic True
Return type: Optional
[bool
]
-
forbid_meter_rewriting
¶ Is true when meter rewriting is forbidden.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.forbid_meter_rewriting is None True
Return type: Optional
[bool
]
-
forbidden_duration
¶ Gets forbidden written duration.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.forbidden_duration is None True
Return type: Optional
[Duration
]
-
rewrite_meter
¶ Is true when all output divisions should rewrite meter.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.rewrite_meter is None True
Return type: Optional
[bool
]
-
rewrite_rest_filled
¶ Is true when rhythm-maker rewrites rest-filled divisions.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.rewrite_rest_filled is None True
Return type: Optional
[bool
]
-
spell_metrically
¶ Is true when durations should spell according to approximate common practice understandings of meter.
>>> specifier = abjadext.rmakers.DurationSpecifier() >>> specifier.spell_metrically is None True
Spells unassignable durations like
5/16
and9/4
metrically when set to'unassignable'
. Leaves other durations unchanged.Return type: Union
[bool
,str
,None
]
-