mutwo.converters.frontends.abjad_attachments module¶
Build Abjad attachments from Mutwo data.
Classes:
Abstract base class for all Abjad attachments. |
|
|
|
|
|
|
|
Abstract base class for Abjad attachments which behave like a bang. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Abstract base class for Abjad attachments which behave like a toggle. |
|
|
- class AbjadAttachment[source]¶
Bases:
abc.ABCAbstract base class for all Abjad attachments.
Methods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)[source]¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- abstract process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class Arpeggio(direction=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.Arpeggio,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
direction (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- direction: Optional[str] = None¶
- property is_active: bool¶
- class Articulation(name=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.Articulation,mutwo.converters.frontends.abjad_attachments.BangEachAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
name (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- name: Optional[str] = None¶
- class ArtificalHarmonic(n_semitones=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.ArtificalHarmonic,mutwo.converters.frontends.abjad_attachments.BangEachAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
n_semitones (Optional[int]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- n_semitones: Optional[int] = None¶
- class BangAttachment[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.AbjadAttachmentAbstract base class for Abjad attachments which behave like a bang.
In Western notation one can differentiate between elements which only get notated if they change (for instance dynamics, tempo) and elements which have to be notated again and again to be effective (for instance arpeggi or tremolo). Attachments that inherit from
BangAttachmentrepresent elements which have to be notated again and again to be effective.Methods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- abstract process_central_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- abstract process_first_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- abstract process_last_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class BangEachAttachment[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.BangAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_central_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- abstract process_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class BangFirstAttachment[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.BangAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_central_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- abstract process_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class BangLastAttachment[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.BangAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_central_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- abstract process_leaf(leaf)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class BarLine(abbreviation=None)[source]¶
Bases:
mutwo.parameters.notation_indicators.BarLine,mutwo.converters.frontends.abjad_attachments.BangLastAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
abbreviation (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abbreviation: Optional[str] = None¶
- property is_active: bool¶
- class BartokPizzicato(is_active=False)[source]¶
Bases:
mutwo.parameters.abc.ExplicitPlayingIndicator,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
is_active (bool) –
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class Clef(name=None)[source]¶
Bases:
mutwo.parameters.notation_indicators.Clef,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
name (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- name: Optional[str] = None¶
- class Dynamic(dynamic_indicator: str = 'mf')[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.ToggleAttachmentMethods:
from_indicator_collection(indicator_collection)Always return None.
process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
dynamic_indicator (str) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)[source]¶
Always return None.
Dynamic can’t be initialised from IndicatorCollection.
- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- dynamic_indicator: str = 'mf'¶
- property is_active: bool¶
- class DynamicChangeIndicationStop[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Always return None.
process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)[source]¶
Always return None.
DynamicChangeIndicationStop can’t be initialised from IndicatorCollection.
- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class Fermata(fermata_type=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.Fermata,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
fermata_type (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- fermata_type: Optional[str] = None¶
- property is_active: bool¶
- class Hairpin(symbol=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.Hairpin,mutwo.converters.frontends.abjad_attachments.ToggleAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
symbol (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- symbol: Optional[str] = None¶
- class LaissezVibrer(is_active=False)[source]¶
Bases:
mutwo.parameters.abc.ExplicitPlayingIndicator,mutwo.converters.frontends.abjad_attachments.BangLastAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
is_active (bool) –
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class MarginMarkup(content=None, context='Staff')[source]¶
Bases:
mutwo.parameters.notation_indicators.MarginMarkup,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
content (Optional[str]) –
context (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- content: Optional[str] = None¶
- context: Optional[str] = 'Staff'¶
- property is_active: bool¶
- class Markup(content=None, direction=None)[source]¶
Bases:
mutwo.parameters.notation_indicators.Markup,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
content (Optional[str]) –
direction (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- content: Optional[str] = None¶
- direction: Optional[str] = None¶
- property is_active: bool¶
- class NaturalHarmonic(is_active=False)[source]¶
Bases:
mutwo.parameters.abc.ExplicitPlayingIndicator,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
is_active (bool) –
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class Ornamentation(direction=None, n_times=1)[source]¶
Bases:
mutwo.parameters.playing_indicators.Ornamentation,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
direction (Optional[str]) –
n_times (int) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- direction: Optional[str] = None¶
- property is_active: bool¶
- n_times: int = 1¶
- class Ottava(n_octaves=0)[source]¶
Bases:
mutwo.parameters.notation_indicators.Ottava,mutwo.converters.frontends.abjad_attachments.ToggleAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
n_octaves (Optional[int]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- n_octaves: Optional[int] = 0¶
- class Pedal(pedal_type=None, pedal_activity=True)[source]¶
Bases:
mutwo.parameters.playing_indicators.Pedal,mutwo.converters.frontends.abjad_attachments.ToggleAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
pedal_type (Optional[str]) –
pedal_activity (Optional[bool]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- pedal_activity: Optional[bool] = True¶
- pedal_type: Optional[str] = None¶
- class Prall(is_active=False)[source]¶
Bases:
mutwo.parameters.abc.ExplicitPlayingIndicator,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
is_active (bool) –
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class RehearsalMark(markup=None)[source]¶
Bases:
mutwo.parameters.notation_indicators.RehearsalMark,mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
markup (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- markup: Optional[str] = None¶
- class StringContactPoint(contact_point=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.StringContactPoint,mutwo.converters.frontends.abjad_attachments.ToggleAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
contact_point (Optional[str]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- contact_point: Optional[str] = None¶
- property is_active: bool¶
- class Tempo(reference_duration: Union[Tuple[int, int], NoneType] = (1, 4), units_per_minute: Union[int, Tuple[int, int], NoneType] = 60, textual_indication: Union[str, NoneType] = None, dynamic_change_indication: Union[str, NoneType] = None, stop_dynamic_change_indicaton: bool = False, print_metronome_mark: bool = True)[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.BangFirstAttachmentMethods:
from_indicator_collection(indicator_collection)Always return None.
process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
reference_duration (Optional[Tuple[int, int]]) –
units_per_minute (Optional[Union[int, Tuple[int, int]]]) –
textual_indication (Optional[str]) –
dynamic_change_indication (Optional[str]) –
stop_dynamic_change_indicaton (bool) –
print_metronome_mark (bool) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)[source]¶
Always return None.
Tempo can’t be initialised from IndicatorCollection.
- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- dynamic_change_indication: Optional[str] = None¶
- property is_active: bool¶
- print_metronome_mark: bool = True¶
- reference_duration: Optional[Tuple[int, int]] = (1, 4)¶
- stop_dynamic_change_indicaton: bool = False¶
- textual_indication: Optional[str] = None¶
- units_per_minute: Optional[Union[int, Tuple[int, int]]] = 60¶
- class Tie(is_active=False)[source]¶
Bases:
mutwo.parameters.abc.ExplicitPlayingIndicator,mutwo.converters.frontends.abjad_attachments.BangLastAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
is_active (bool) –
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- class ToggleAttachment[source]¶
Bases:
mutwo.converters.frontends.abjad_attachments.AbjadAttachmentAbstract base class for Abjad attachments which behave like a toggle.
In Western notation one can differentiate between elements which only get notated if they change (for instance dynamics, tempo) and elements which have to be notated again and again (for instance arpeggi or tremolo). Attachments that inherit from
ToggleAttachmentrepresent elements which only get notated if their value changes.Methods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_leaf(leaf, previous_attachment)process_leaves(leaves, previous_attachment)Attributes:
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- classmethod get_class_name()¶
- abstract process_leaf(leaf, previous_attachment)[source]¶
- Parameters
leaf (abjad.score.Leaf) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)[source]¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- abstract property is_active: bool¶
- class Tremolo(n_flags=None)[source]¶
Bases:
mutwo.parameters.playing_indicators.Tremolo,mutwo.converters.frontends.abjad_attachments.BangEachAttachmentMethods:
from_indicator_collection(indicator_collection)Initialize
AbjadAttachmentfromIndicatorCollection.process_central_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_leaf(leaf)process_leaves(leaves, previous_attachment)Attributes:
- Parameters
n_flags (Optional[int]) –
- Return type
None
- classmethod from_indicator_collection(indicator_collection)¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters
indicator_collection (mutwo.parameters.abc.IndicatorCollection) –
- Return type
Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]
- get_arguments_dict()¶
- Return type
Dict[str, Any]
- classmethod get_class_name()¶
- process_central_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_first_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_last_leaf(leaf)¶
- Parameters
leaf (abjad.score.Leaf) –
- Return type
abjad.score.Leaf
- process_leaves(leaves, previous_attachment)¶
- Parameters
leaves (Tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]) –
- Return type
Tuple[abjad.score.Leaf, …]
- property is_active: bool¶
- n_flags: Optional[int] = None¶