qschemaitems¶
Abstract Classes
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
The optionally defined search tree.
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
Beatwise q-schema item. |
|
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
Gets repr.
The optionally defined beatspan duration.
Special methods
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
Gets repr.
The beatspan duration, if a time signature was defined.
The optionally defined TimeSignature.
If true, use the full measure as the beatspan.
Special methods
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.