mutwo.abjad_parameters¶
Object |
Documentation |
|---|---|
Dynamic(indicator: ‘typing.Optional[music_parameters.abc.PlayingIndicator | music_parameters.abc.NotationIndicator]’ = None, is_chronon_rest: ‘typing.Optional[typing.Callable[[core_events.Chronon], bool]]’ = None, mutwo_pitch_to_abjad_pitch: ‘typing.Optional[typing.Callable[[music_parameters.abc.Pitch], abjad.Pitch]]’ = None, mutwo_volume_to_abjad_attachment_dynamic: ‘typing.Optional[typing.Callable[[music_parameters.abc.Volume], abjad.Dynamic]]’ = None, mutwo_lyric_to_abjad_string: ‘typing.Optional[typing.Callable[[music_parameters.abc.Lyric], str]]’ = None, with_duration_line: ‘bool’ = False, dynamic_indicator: str = ‘mf’) |
|
Tempo(indicator: ‘typing.Optional[music_parameters.abc.PlayingIndicator | music_parameters.abc.NotationIndicator]’ = None, is_chronon_rest: ‘typing.Optional[typing.Callable[[core_events.Chronon], bool]]’ = None, mutwo_pitch_to_abjad_pitch: ‘typing.Optional[typing.Callable[[music_parameters.abc.Pitch], abjad.Pitch]]’ = None, mutwo_volume_to_abjad_attachment_dynamic: ‘typing.Optional[typing.Callable[[music_parameters.abc.Volume], abjad.Dynamic]]’ = None, mutwo_lyric_to_abjad_string: ‘typing.Optional[typing.Callable[[music_parameters.abc.Lyric], str]]’ = None, with_duration_line: ‘bool’ = False, reference_duration: Optional[tuple[int, int]] = (1, 4), units_per_minute: int | tuple[int, int] | None = 60, textual_indication: Optional[str] = None, dynamic_change_indication: Optional[str] = None, stop_dynamic_change_indicaton: bool = False, print_metronome_mark: bool = True) |
|
- class Arpeggio(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Articulation(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangEachAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangEachAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Trill(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Cue(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class WoodwindFingering(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
fingering_sizeindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- fingering_size = 0.7¶
- class Tremolo(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangEachAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangEachAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class ArtificalHarmonic(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangEachAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangEachAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class NaturalHarmonicNodeList(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
AbjadAttachmentPublic Data Attributes:
replace_leaf_by_leafdisallow_detach_indicator_listindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Sequence[Leaf]
- disallow_detach_indicator_list = [LilyPondLiteral(argument='\\-', site='after', directed=False)]¶
- replace_leaf_by_leaf = False¶
- class StringContactPoint(*args, **kwargs)[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- class Pedal(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- class Slur(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf, previous_attachment)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- class Hairpin(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
niente_literalindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
process_leaf(leaf, _)process_leaf_tuple(leaf_tuple, ...)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf(leaf, _)[source]¶
- Parameters:
leaf (Leaf) –
_ (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- niente_literal = LilyPondLiteral(argument='\\once \\override Hairpin.circled-tip = ##t', site='opening', directed=False)¶
- class BartokPizzicato(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class BreathMark(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Fermata(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Prall(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Tie(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class DurationLineTriller(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangEachAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangEachAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class DurationLineDashed(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangEachAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangEachAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Glissando(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
thicknessminimum_lengthindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- minimum_length = 5¶
- thickness = 3¶
- class BendAfter(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class LaissezVibrer(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class BarLine(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Clef(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Ottava(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- class Markup(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class RehearsalMark(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class MarginMarkup(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Ornamentation(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
Public Methods:
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- class Dynamic(indicator: 'typing.Optional[music_parameters.abc.PlayingIndicator | music_parameters.abc.NotationIndicator]' = None, is_chronon_rest: 'typing.Optional[typing.Callable[[core_events.Chronon], bool]]' = None, mutwo_pitch_to_abjad_pitch: 'typing.Optional[typing.Callable[[music_parameters.abc.Pitch], abjad.Pitch]]' = None, mutwo_volume_to_abjad_attachment_dynamic: 'typing.Optional[typing.Callable[[music_parameters.abc.Volume], abjad.Dynamic]]' = None, mutwo_lyric_to_abjad_string: 'typing.Optional[typing.Callable[[music_parameters.abc.Lyric], str]]' = None, with_duration_line: 'bool' = False, dynamic_indicator: str = 'mf')[source]¶
Bases:
ToggleAttachmentPublic Data Attributes:
dynamic_indicatoris_activeindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
from_indicator_collection(...)Always return None.
process_leaf(leaf, previous_attachment)Inherited from
ToggleAttachmentprocess_leaf(leaf, previous_attachment)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
dynamic_indicator (str) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Always return None.
Dynamic can’t be initialised from IndicatorCollection.
- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- dynamic_indicator: str = 'mf'¶
- property is_active: bool¶
- class Tempo(indicator: 'typing.Optional[music_parameters.abc.PlayingIndicator | music_parameters.abc.NotationIndicator]' = None, is_chronon_rest: 'typing.Optional[typing.Callable[[core_events.Chronon], bool]]' = None, mutwo_pitch_to_abjad_pitch: 'typing.Optional[typing.Callable[[music_parameters.abc.Pitch], abjad.Pitch]]' = None, mutwo_volume_to_abjad_attachment_dynamic: 'typing.Optional[typing.Callable[[music_parameters.abc.Volume], abjad.Dynamic]]' = None, mutwo_lyric_to_abjad_string: 'typing.Optional[typing.Callable[[music_parameters.abc.Lyric], str]]' = None, with_duration_line: 'bool' = False, reference_duration: Optional[tuple[int, int]] = (1, 4), units_per_minute: int | tuple[int, int] | None = 60, textual_indication: Optional[str] = None, dynamic_change_indication: Optional[str] = None, stop_dynamic_change_indicaton: bool = False, print_metronome_mark: bool = True)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
reference_durationunits_per_minutetextual_indicationdynamic_change_indicationstop_dynamic_change_indicatonprint_metronome_markis_activeindicatoris_chronon_restmutwo_pitch_to_abjad_pitchmutwo_volume_to_abjad_attachment_dynamicmutwo_lyric_to_abjad_stringwith_duration_linePublic Methods:
from_indicator_collection(...)Always return None.
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
reference_duration (Optional[tuple[int, int]]) –
units_per_minute (int | tuple[int, int] | None) –
textual_indication (Optional[str]) –
dynamic_change_indication (Optional[str]) –
stop_dynamic_change_indicaton (bool) –
print_metronome_mark (bool) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Always return None.
Tempo can’t be initialised from IndicatorCollection.
- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- 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: int | tuple[int, int] | None = 60¶
- class DynamicChangeIndicationStop(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
is_activePublic Methods:
from_indicator_collection(...)Always return None.
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Always return None.
DynamicChangeIndicationStop can’t be initialised from IndicatorCollection.
- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- property is_active: bool¶
- class GraceNoteConsecution(grace_note_consecution)[source]¶
Bases:
BangFirstAttachmentPublic Data Attributes:
is_activePublic Methods:
from_indicator_collection(...)Always return None.
process_leaf(leaf)Inherited from
BangFirstAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
grace_note_consecution (BeforeGraceContainer) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Always return None.
GraceNoteConsecution can’t be initialised from IndicatorCollection.
- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- property is_active: bool¶
- class AfterGraceNoteConsecution(after_grace_note_consecution)[source]¶
Bases:
BangLastAttachmentPublic Data Attributes:
is_activePublic Methods:
from_indicator_collection(...)Always return None.
process_leaf(leaf)Inherited from
BangLastAttachmentprocess_leaf(leaf)process_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
BangAttachmentprocess_first_leaf(leaf)process_last_leaf(leaf)process_central_leaf(leaf)process_leaf_tuple(leaf_tuple, ...)Inherited from
AbjadAttachmentInitialize
AbjadAttachmentfromIndicatorCollection.process_leaf_tuple(leaf_tuple, ...)
- Parameters:
after_grace_note_consecution (AfterGraceContainer) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Always return None.
AfterGraceNoteConsecution can’t be initialised from IndicatorCollection.
- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- property is_active: bool¶
mutwo.abjad_parameters.abc¶
- class AbjadAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
ABCAbstract base class for all Abjad attachments.
- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- classmethod from_indicator_collection(indicator_collection, **kwargs)[source]¶
Initialize
AbjadAttachmentfromIndicatorCollection.If no suitable
Indicatorcould be found in the collection the method will simply return None.- Parameters:
indicator_collection (IndicatorCollection) –
- Return type:
Optional[AbjadAttachment]
- abstract process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- indicator: Optional[Union[PlayingIndicator, NotationIndicator]] = None¶
- property is_active: bool¶
- class property replace_leaf_by_leaf: bool¶
Communicate expected return type of process_leaf_tuple
Set to
Trueif ‘process_leaf_tuple’ returns a sequence of abjad leaves with an equal length to the provided leaf_tuple and where each new leaf replaces the respective old leaf at the same position. Set toTrueif ‘process_leaf_tuple’ returns a new abjad object which is set at the position of the old first leaf and if all other old leaves are supposed to be deleted.
- with_duration_line: bool = False¶
- class BangAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
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.- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- class BangEachAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangAttachment- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_central_leaf(leaf)[source]¶
- Parameters:
leaf (Leaf) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- class BangFirstAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangAttachment- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- process_central_leaf(leaf)[source]¶
- Parameters:
leaf (Leaf) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- class BangLastAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
BangAttachment- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- abstract process_leaf(leaf)[source]¶
- Parameters:
leaf (Leaf) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
- class ToggleAttachment(indicator=None, is_chronon_rest=None, mutwo_pitch_to_abjad_pitch=None, mutwo_volume_to_abjad_attachment_dynamic=None, mutwo_lyric_to_abjad_string=None, with_duration_line=False)[source]¶
Bases:
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.- Parameters:
indicator (Optional[Union[PlayingIndicator, NotationIndicator]]) –
is_chronon_rest (Optional[Callable[[Chronon], bool]]) –
mutwo_pitch_to_abjad_pitch (Optional[Callable[[Pitch], Pitch]]) –
mutwo_volume_to_abjad_attachment_dynamic (Optional[Callable[[Volume], Dynamic]]) –
mutwo_lyric_to_abjad_string (Optional[Callable[[Lyric], str]]) –
with_duration_line (bool) –
- abstract process_leaf(leaf, previous_attachment)[source]¶
- Parameters:
leaf (Leaf) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
Union[Leaf, Sequence[Leaf]]
- process_leaf_tuple(leaf_tuple, previous_attachment)[source]¶
- Parameters:
leaf_tuple (tuple[abjad.score.Leaf, ...]) –
previous_attachment (Optional[AbjadAttachment]) –
- Return type:
tuple[abjad.score.Leaf, …]
mutwo.abjad_parameters.configurations¶
Configure `mutwo.abjad_parameters
- CUSTOM_STRING_CONTACT_POINT_DICT = {'col legno tratto': 'c.l.t.'}¶
Extends the predefined string contact points from
abjad.StringContactPoint.The
dicthas the form {string_contact_point: abbreviation}. It is used in the classStringContactPoint. You can override or update the default value of the variable to insert your own custom string contact points:>>> from mutwo import abjad_parameters >>> abjad_parameters.configurations.CUSTOM_STRING_CONTACT_POINT_DICT.update({"ebow": "eb"})
mutwo.abjad_parameters.constants¶
Constants to be used in `mutwo.abjad_parameters
- INDICATORS_TO_DETACH_FROM_MAIN_LEAF_AT_GRACE_NOTES_TUPLE = (<class 'abjad.indicators.TimeSignature'>,)¶
This is used in
mutwo.abjad_parameters.GraceNotes.Some indicators have to be detached from the main note and added to the first grace note, otherwise the resulting notation will first print the grace notes and afterwards the indicator (which is ugly and looks buggy).