DurationSpecifier

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjadext/rmakers/../../abjad/system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjadext/rmakers/../../abjad/system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph "cluster_abjadext.rmakers" { graph [label="abjadext.rmakers"]; node [color=2]; "abjadext.rmakers.DurationSpecifier.DurationSpecifier" [URL="../api/abjadext/rmakers/DurationSpecifier.html#abjadext.rmakers.DurationSpecifier.DurationSpecifier", color=black, fontcolor=white, label="Duration\nSpecifier", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjadext.rmakers.DurationSpecifier.DurationSpecifier"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

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 and 9/4 metrically when set to 'unassignable'. Leaves other durations unchanged.

Return type:Union[bool, str, None]