qschemaitems

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_abc { graph [label=abc]; node [color=1]; "abc.ABC" [URL="https://docs.python.org/3.10/library/abc.html#abc.ABC", label=ABC, target=_top]; } subgraph "cluster_abjadext.nauert.qschemaitems" { graph [label="abjadext.nauert.qschemaitems"]; node [color=2]; "abjadext.nauert.qschemaitems.BeatwiseQSchemaItem" [URL="../api/abjadext/nauert/qschemaitems.html#abjadext.nauert.qschemaitems.BeatwiseQSchemaItem", color=black, fontcolor=white, label="Beatwise\nQSchema\nItem", target=_top]; "abjadext.nauert.qschemaitems.MeasurewiseQSchemaItem" [URL="../api/abjadext/nauert/qschemaitems.html#abjadext.nauert.qschemaitems.MeasurewiseQSchemaItem", color=black, fontcolor=white, label="Measurewise\nQSchema\nItem", target=_top]; "abjadext.nauert.qschemaitems.QSchemaItem" [URL="../api/abjadext/nauert/qschemaitems.html#abjadext.nauert.qschemaitems.QSchemaItem", color=black, fontcolor=white, label="QSchema\nItem", shape=oval, style="bold, filled", target=_top]; "abjadext.nauert.qschemaitems.QSchemaItem" -> "abjadext.nauert.qschemaitems.BeatwiseQSchemaItem"; "abjadext.nauert.qschemaitems.QSchemaItem" -> "abjadext.nauert.qschemaitems.MeasurewiseQSchemaItem"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.10/library/functions.html#object", label=object, target=_top]; } "abc.ABC" -> "abjadext.nauert.qschemaitems.QSchemaItem"; "builtins.object" -> "abc.ABC"; }


Abstract Classes

QSchemaItem

Abstract q-schema item.

abstract class abjadext.nauert.qschemaitems.QSchemaItem(search_tree=None, tempo=None)[source]

Abstract q-schema item.

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


Attributes Summary

search_tree

The optionally defined search tree.

tempo

The optionally defined tempo.


Read-only properties

search_tree

The optionally defined search tree.

Returns search tree or none.

tempo

The optionally defined tempo.


Classes

BeatwiseQSchemaItem

Beatwise q-schema item.

MeasurewiseQSchemaItem

Measurewise q-schema item.

class abjadext.nauert.qschemaitems.BeatwiseQSchemaItem(beatspan=None, search_tree=None, tempo=None)[source]

Beatwise q-schema item.

Represents a change of state in the timeline of an unmetered quantization process.

>>> nauert.BeatwiseQSchemaItem()
BeatwiseQSchemaItem(beatspan=None, search_tree=None, tempo=None)

Defines a change in tempo:

>>> nauert.BeatwiseQSchemaItem(tempo=((1, 4), 60))
BeatwiseQSchemaItem(beatspan=None, search_tree=None, tempo=MetronomeMark(reference_duration=Duration(1, 4), units_per_minute=60, textual_indication=None, custom_markup=None, decimal=False, hide=False))

Defines a change in beatspan:

>>> nauert.BeatwiseQSchemaItem(beatspan=(1, 8))
BeatwiseQSchemaItem(beatspan=Duration(1, 8), search_tree=None, tempo=None)

Attributes Summary

__repr__

Gets repr.

beatspan

The optionally defined beatspan duration.


Special methods

overridden __repr__()[source]

Gets repr.


Read-only properties

beatspan

The optionally defined beatspan duration.

(QSchemaItem).search_tree

The optionally defined search tree.

Returns search tree or none.

(QSchemaItem).tempo

The optionally defined tempo.

class abjadext.nauert.qschemaitems.MeasurewiseQSchemaItem(search_tree=None, tempo=None, time_signature=None, use_full_measure=None)[source]

Measurewise q-schema item.

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

>>> q_schema_item = nauert.MeasurewiseQSchemaItem()

Defines a change in tempo:

>>> nauert.MeasurewiseQSchemaItem(tempo=((1, 4), 60))
MeasurewiseQSchemaItem(search_tree=None, tempo=MetronomeMark(reference_duration=Duration(1, 4), units_per_minute=60, textual_indication=None, custom_markup=None, decimal=False, hide=False), time_signature=None, use_full_measure=None)

Defines a change in time signature:

>>> nauert.MeasurewiseQSchemaItem(time_signature=(6, 8))
MeasurewiseQSchemaItem(search_tree=None, tempo=None, time_signature=TimeSignature(pair=(6, 8), hide=False, partial=None), use_full_measure=None)

Tests for beatspan given a defined time signature:

>>> nauert.MeasurewiseQSchemaItem(time_signature=(6, 8)).beatspan
Duration(1, 8)

Attributes Summary

__repr__

Gets repr.

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

overridden __repr__()[source]

Gets repr.


Read-only properties

beatspan

The beatspan duration, if a time signature was defined.

(QSchemaItem).search_tree

The optionally defined search tree.

Returns search tree or none.

(QSchemaItem).tempo

The optionally defined tempo.

time_signature

The optionally defined TimeSignature.

use_full_measure

If true, use the full measure as the beatspan.