InterpolationSpecifier

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.InterpolationSpecifier.InterpolationSpecifier" [URL="../api/abjadext/rmakers/InterpolationSpecifier.html#abjadext.rmakers.InterpolationSpecifier.InterpolationSpecifier", color=black, fontcolor=white, label="Interpolation\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.InterpolationSpecifier.InterpolationSpecifier"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjadext.rmakers.InterpolationSpecifier.InterpolationSpecifier(*, start_duration=(1, 8), stop_duration=(1, 16), written_duration=(1, 16))

Interpolation specifier.


Attributes Summary

reverse Swaps start duration and stop duration of interpolation specifier.
start_duration Gets start duration.
stop_duration Gets stop duration.
written_duration Gets written duration.

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.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

reverse()

Swaps start duration and stop duration of interpolation specifier.

Changes accelerando specifier to ritardando specifier:

>>> specifier = abjadext.rmakers.InterpolationSpecifier(
...     start_duration=(1, 4),
...     stop_duration=(1, 16),
...     written_duration=(1, 16),
...     )
>>> specifier = specifier.reverse()
>>> abjad.f(specifier)
abjadext.rmakers.InterpolationSpecifier(
    start_duration=abjad.Duration(1, 16),
    stop_duration=abjad.Duration(1, 4),
    written_duration=abjad.Duration(1, 16),
    )

Changes ritardando specifier to accelerando specifier:

>>> specifier = abjadext.rmakers.InterpolationSpecifier(
...     start_duration=(1, 16),
...     stop_duration=(1, 4),
...     written_duration=(1, 16),
...     )
>>> specifier = specifier.reverse()
>>> abjad.f(specifier)
abjadext.rmakers.InterpolationSpecifier(
    start_duration=abjad.Duration(1, 4),
    stop_duration=abjad.Duration(1, 16),
    written_duration=abjad.Duration(1, 16),
    )
Return type:InterpolationSpecifier

Read-only properties

start_duration

Gets start duration.

Return type:Duration
stop_duration

Gets stop duration.

Return type:Duration
written_duration

Gets written duration.

Return type:Duration