MeasurewiseQSchemaItem

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/nauert/../../abjad/system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph "cluster_abjadext.nauert" { graph [label="abjadext.nauert"]; node [color=2]; "abjadext.nauert.MeasurewiseQSchemaItem.MeasurewiseQSchemaItem" [URL="../api/abjadext/nauert/MeasurewiseQSchemaItem.html#abjadext.nauert.MeasurewiseQSchemaItem.MeasurewiseQSchemaItem", color=black, fontcolor=white, label="Measurewise\nQSchema\nItem", target=_top]; "abjadext.nauert.QSchemaItem.QSchemaItem" [URL="../api/abjadext/nauert/QSchemaItem.html#abjadext.nauert.QSchemaItem.QSchemaItem", label="QSchema\nItem", shape=oval, style=bold, target=_top]; "abjadext.nauert.QSchemaItem.QSchemaItem" -> "abjadext.nauert.MeasurewiseQSchemaItem.MeasurewiseQSchemaItem"; } 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.AbjadObject.AbjadObject" -> "abjadext.nauert.QSchemaItem.QSchemaItem"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjadext.nauert.MeasurewiseQSchemaItem.MeasurewiseQSchemaItem(search_tree=None, tempo=None, time_signature=None, use_full_measure=None)

Measurewise q-schema item.

Represents a change of state in the timeline of a metered quantization process.

>>> q_schema_item = abjadext.nauert.MeasurewiseQSchemaItem()

Defines a change in tempo:

>>> q_schema_item = abjadext.nauert.MeasurewiseQSchemaItem(
...     tempo=((1, 4), 60),
...     )
>>> print(format(q_schema_item))
abjadext.nauert.MeasurewiseQSchemaItem(
    tempo=abjad.MetronomeMark(
        reference_duration=abjad.Duration(1, 4),
        units_per_minute=60,
        ),
    )

Defines a change in time signature:

>>> q_schema_item = abjadext.nauert.MeasurewiseQSchemaItem(
...     time_signature=(6, 8),
...     )
>>> print(format(q_schema_item))
abjadext.nauert.MeasurewiseQSchemaItem(
    time_signature=abjad.TimeSignature((6, 8)),
    )

Tests for beatspan given a defined time signature:

>>> q_schema_item.beatspan
Duration(1, 8)

Attributes Summary

beatspan The beatspan duration, if a time signature was defined.
time_signature The optionally defined TimeSignature.
use_full_measure If True, use the full measure as the beatspan.

Special methods

(QSchemaItem).__format__(format_specification='')

Formats q schema item.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

beatspan

The beatspan duration, if a time signature was defined.

Returns duration or none.

(QSchemaItem).search_tree

The optionally defined search tree.

Returns search tree or none.

(QSchemaItem).tempo

The optionally defined tempo.

Returns tempo or none.

time_signature

The optionally defined TimeSignature.

Returns time signature or none

use_full_measure

If True, use the full measure as the beatspan.

Returns boolean or none.