mutwo.abjad_parameters

Object

Documentation

mutwo.abjad_parameters.Arpeggio

mutwo.abjad_parameters.Articulation

mutwo.abjad_parameters.Trill

mutwo.abjad_parameters.Cue

mutwo.abjad_parameters.WoodwindFingering

mutwo.abjad_parameters.Tremolo

mutwo.abjad_parameters.ArtificalHarmonic

mutwo.abjad_parameters.NaturalHarmonicNodeList

mutwo.abjad_parameters.StringContactPoint

mutwo.abjad_parameters.Pedal

mutwo.abjad_parameters.Slur

mutwo.abjad_parameters.Hairpin

mutwo.abjad_parameters.BartokPizzicato

mutwo.abjad_parameters.BreathMark

mutwo.abjad_parameters.Fermata

mutwo.abjad_parameters.Prall

mutwo.abjad_parameters.Tie

mutwo.abjad_parameters.DurationLineTriller

mutwo.abjad_parameters.DurationLineDashed

mutwo.abjad_parameters.Glissando

mutwo.abjad_parameters.BendAfter

mutwo.abjad_parameters.LaissezVibrer

mutwo.abjad_parameters.BarLine

mutwo.abjad_parameters.Clef

mutwo.abjad_parameters.Ottava

mutwo.abjad_parameters.Markup

mutwo.abjad_parameters.RehearsalMark

mutwo.abjad_parameters.MarginMarkup

mutwo.abjad_parameters.Ornamentation

mutwo.abjad_parameters.Dynamic

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’)

mutwo.abjad_parameters.Tempo

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)

mutwo.abjad_parameters.DynamicChangeIndicationStop

mutwo.abjad_parameters.GraceNoteConsecution

mutwo.abjad_parameters.AfterGraceNoteConsecution

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangEachAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangEachAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Data Attributes:

fingering_size

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangEachAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangEachAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangEachAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangEachAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: AbjadAttachment

Public Data Attributes:

replace_leaf_by_leaf

disallow_detach_indicator_list

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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: ToggleAttachment

Public Methods:

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

process_leaf_tuple(leaf_tuple, ...)


process_leaf(leaf, previous_attachment)[source]
Parameters:
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: ToggleAttachment

Public Methods:

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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:
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: ToggleAttachment

Public Methods:

process_leaf(leaf, previous_attachment)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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:
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: ToggleAttachment

Public Data Attributes:

niente_literal

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

process_leaf(leaf, _)

process_leaf_tuple(leaf_tuple, ...)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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:
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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangLastAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangEachAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangEachAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangEachAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangEachAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangLastAttachment

Public Data Attributes:

thickness

minimum_length

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangLastAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangLastAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangLastAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: ToggleAttachment

Public Methods:

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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:
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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: BangFirstAttachment

Public Methods:

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: ToggleAttachment

Public Data Attributes:

dynamic_indicator

is_active

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

from_indicator_collection(...)

Always return None.

process_leaf(leaf, previous_attachment)

Inherited from ToggleAttachment

process_leaf(leaf, previous_attachment)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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:
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: BangFirstAttachment

Public Data Attributes:

reference_duration

units_per_minute

textual_indication

dynamic_change_indication

stop_dynamic_change_indicaton

print_metronome_mark

is_active

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

Inherited from AbjadAttachment

indicator

is_chronon_rest

mutwo_pitch_to_abjad_pitch

mutwo_volume_to_abjad_attachment_dynamic

mutwo_lyric_to_abjad_string

with_duration_line

is_active

Public Methods:

from_indicator_collection(...)

Always return None.

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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]

process_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[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: 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: BangFirstAttachment

Public Methods:

from_indicator_collection(...)

Always return None.

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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]

process_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

property is_active: bool
class GraceNoteConsecution(grace_note_consecution)[source]

Bases: BangFirstAttachment

Public Methods:

from_indicator_collection(...)

Always return None.

process_leaf(leaf)

Inherited from BangFirstAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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]

process_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

property is_active: bool
class AfterGraceNoteConsecution(after_grace_note_consecution)[source]

Bases: BangLastAttachment

Public Methods:

from_indicator_collection(...)

Always return None.

process_leaf(leaf)

Inherited from BangLastAttachment

process_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from BangAttachment

process_first_leaf(leaf)

process_last_leaf(leaf)

process_central_leaf(leaf)

process_leaf_tuple(leaf_tuple, ...)

Inherited from AbjadAttachment

replace_leaf_by_leaf

get_class_name()

from_indicator_collection(...)

Initialize AbjadAttachment from IndicatorCollection.

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]

process_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

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: ABC

Abstract 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 AbjadAttachment from IndicatorCollection.

If no suitable Indicator could be found in the collection the method will simply return None.

Parameters:

indicator_collection (IndicatorCollection) –

Return type:

Optional[AbjadAttachment]

classmethod get_class_name()[source]
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
is_chronon_rest: Optional[Callable[[Chronon], bool]] = None
mutwo_lyric_to_abjad_string: Optional[Callable[[Lyric], str]] = None
mutwo_pitch_to_abjad_pitch: Optional[Callable[[Pitch], Pitch]] = None
mutwo_volume_to_abjad_attachment_dynamic: Optional[Callable[[Volume], Dynamic]] = None
class property replace_leaf_by_leaf: bool

Communicate expected return type of process_leaf_tuple

Set to True if ‘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 to True if ‘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: AbjadAttachment

Abstract 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 BangAttachment represent 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) –

abstract process_central_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Leaf

abstract process_first_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Leaf

abstract process_last_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

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 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]]

process_first_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

process_last_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

abstract process_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]]

process_first_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

process_last_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Union[Leaf, Sequence[Leaf]]

abstract process_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) –

process_central_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Leaf

process_first_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Leaf

process_last_leaf(leaf)[source]
Parameters:

leaf (Leaf) –

Return type:

Leaf

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: AbjadAttachment

Abstract 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 ToggleAttachment represent 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:
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 dict has the form {string_contact_point: abbreviation}. It is used in the class StringContactPoint. 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).