mutwo.converters.frontends.abjad_attachments module

Build Abjad attachments from Mutwo data.

Classes:

AbjadAttachment()

Abstract base class for all Abjad attachments.

Arpeggio([direction])

Articulation([name])

ArtificalHarmonic([n_semitones])

BangAttachment()

Abstract base class for Abjad attachments which behave like a bang.

BangEachAttachment()

BangFirstAttachment()

BangLastAttachment()

BarLine([abbreviation])

BartokPizzicato([is_active])

Clef([name])

Dynamic([dynamic_indicator])

DynamicChangeIndicationStop()

Fermata([fermata_type])

Hairpin([symbol])

LaissezVibrer([is_active])

MarginMarkup([content, context])

Markup([content, direction])

NaturalHarmonic([is_active])

Ornamentation([direction, n_times])

Ottava([n_octaves])

Pedal([pedal_type, pedal_activity])

Prall([is_active])

RehearsalMark([markup])

StringContactPoint([contact_point])

Tempo([reference_duration, ...])

Tie([is_active])

ToggleAttachment()

Abstract base class for Abjad attachments which behave like a toggle.

Tremolo([n_flags])

class AbjadAttachment[source]

Bases: abc.ABC

Abstract base class for all Abjad attachments.

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)[source]

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()[source]
abstract process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class Arpeggio(direction=None)[source]

Bases: mutwo.parameters.playing_indicators.Arpeggio, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

direction

is_active

Parameters

direction (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

direction: Optional[str] = None
property is_active: bool
class Articulation(name=None)[source]

Bases: mutwo.parameters.playing_indicators.Articulation, mutwo.converters.frontends.abjad_attachments.BangEachAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

name

Parameters

name (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
name: Optional[str] = None
class ArtificalHarmonic(n_semitones=None)[source]

Bases: mutwo.parameters.playing_indicators.ArtificalHarmonic, mutwo.converters.frontends.abjad_attachments.BangEachAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

n_semitones

Parameters

n_semitones (Optional[int]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
n_semitones: Optional[int] = None
class BangAttachment[source]

Bases: mutwo.converters.frontends.abjad_attachments.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.

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
abstract process_central_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

abstract process_first_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

abstract process_last_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class BangEachAttachment[source]

Bases: mutwo.converters.frontends.abjad_attachments.BangAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_central_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

abstract process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class BangFirstAttachment[source]

Bases: mutwo.converters.frontends.abjad_attachments.BangAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_central_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

abstract process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class BangLastAttachment[source]

Bases: mutwo.converters.frontends.abjad_attachments.BangAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_central_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

abstract process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class BarLine(abbreviation=None)[source]

Bases: mutwo.parameters.notation_indicators.BarLine, mutwo.converters.frontends.abjad_attachments.BangLastAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

abbreviation

is_active

Parameters

abbreviation (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abbreviation: Optional[str] = None
property is_active: bool
class BartokPizzicato(is_active=False)[source]

Bases: mutwo.parameters.abc.ExplicitPlayingIndicator, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

Parameters

is_active (bool) –

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class Clef(name=None)[source]

Bases: mutwo.parameters.notation_indicators.Clef, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

name

Parameters

name (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
name: Optional[str] = None
class Dynamic(dynamic_indicator: str = 'mf')[source]

Bases: mutwo.converters.frontends.abjad_attachments.ToggleAttachment

Methods:

from_indicator_collection(indicator_collection)

Always return None.

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

dynamic_indicator

is_active

Parameters

dynamic_indicator (str) –

Return type

None

classmethod from_indicator_collection(indicator_collection)[source]

Always return None.

Dynamic can’t be initialised from IndicatorCollection.

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

dynamic_indicator: str = 'mf'
property is_active: bool
class DynamicChangeIndicationStop[source]

Bases: mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Always return None.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)[source]

Always return None.

DynamicChangeIndicationStop can’t be initialised from IndicatorCollection.

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class Fermata(fermata_type=None)[source]

Bases: mutwo.parameters.playing_indicators.Fermata, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

fermata_type

is_active

Parameters

fermata_type (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

fermata_type: Optional[str] = None
property is_active: bool
class Hairpin(symbol=None)[source]

Bases: mutwo.parameters.playing_indicators.Hairpin, mutwo.converters.frontends.abjad_attachments.ToggleAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

symbol

Parameters

symbol (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
symbol: Optional[str] = None
class LaissezVibrer(is_active=False)[source]

Bases: mutwo.parameters.abc.ExplicitPlayingIndicator, mutwo.converters.frontends.abjad_attachments.BangLastAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

Parameters

is_active (bool) –

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class MarginMarkup(content=None, context='Staff')[source]

Bases: mutwo.parameters.notation_indicators.MarginMarkup, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

content

context

is_active

Parameters
  • content (Optional[str]) –

  • context (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

content: Optional[str] = None
context: Optional[str] = 'Staff'
property is_active: bool
class Markup(content=None, direction=None)[source]

Bases: mutwo.parameters.notation_indicators.Markup, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

content

direction

is_active

Parameters
  • content (Optional[str]) –

  • direction (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

content: Optional[str] = None
direction: Optional[str] = None
property is_active: bool
class NaturalHarmonic(is_active=False)[source]

Bases: mutwo.parameters.abc.ExplicitPlayingIndicator, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

Parameters

is_active (bool) –

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class Ornamentation(direction=None, n_times=1)[source]

Bases: mutwo.parameters.playing_indicators.Ornamentation, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

direction

is_active

n_times

Parameters
  • direction (Optional[str]) –

  • n_times (int) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

direction: Optional[str] = None
property is_active: bool
n_times: int = 1
class Ottava(n_octaves=0)[source]

Bases: mutwo.parameters.notation_indicators.Ottava, mutwo.converters.frontends.abjad_attachments.ToggleAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

n_octaves

Parameters

n_octaves (Optional[int]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
n_octaves: Optional[int] = 0
class Pedal(pedal_type=None, pedal_activity=True)[source]

Bases: mutwo.parameters.playing_indicators.Pedal, mutwo.converters.frontends.abjad_attachments.ToggleAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

pedal_activity

pedal_type

Parameters
  • pedal_type (Optional[str]) –

  • pedal_activity (Optional[bool]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
pedal_activity: Optional[bool] = True
pedal_type: Optional[str] = None
class Prall(is_active=False)[source]

Bases: mutwo.parameters.abc.ExplicitPlayingIndicator, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

Parameters

is_active (bool) –

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class RehearsalMark(markup=None)[source]

Bases: mutwo.parameters.notation_indicators.RehearsalMark, mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

markup

Parameters

markup (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
markup: Optional[str] = None
class StringContactPoint(contact_point=None)[source]

Bases: mutwo.parameters.playing_indicators.StringContactPoint, mutwo.converters.frontends.abjad_attachments.ToggleAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

contact_point

is_active

Parameters

contact_point (Optional[str]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

contact_point: Optional[str] = None
property is_active: bool
class Tempo(reference_duration: Union[Tuple[int, int], NoneType] = (1, 4), units_per_minute: Union[int, Tuple[int, int], NoneType] = 60, textual_indication: Union[str, NoneType] = None, dynamic_change_indication: Union[str, NoneType] = None, stop_dynamic_change_indicaton: bool = False, print_metronome_mark: bool = True)[source]

Bases: mutwo.converters.frontends.abjad_attachments.BangFirstAttachment

Methods:

from_indicator_collection(indicator_collection)

Always return None.

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

dynamic_change_indication

is_active

print_metronome_mark

reference_duration

stop_dynamic_change_indicaton

textual_indication

units_per_minute

Parameters
  • reference_duration (Optional[Tuple[int, int]]) –

  • units_per_minute (Optional[Union[int, Tuple[int, int]]]) –

  • textual_indication (Optional[str]) –

  • dynamic_change_indication (Optional[str]) –

  • stop_dynamic_change_indicaton (bool) –

  • print_metronome_mark (bool) –

Return type

None

classmethod from_indicator_collection(indicator_collection)[source]

Always return None.

Tempo can’t be initialised from IndicatorCollection.

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

dynamic_change_indication: Optional[str] = None
property is_active: bool
print_metronome_mark: bool = True
reference_duration: Optional[Tuple[int, int]] = (1, 4)
stop_dynamic_change_indicaton: bool = False
textual_indication: Optional[str] = None
units_per_minute: Optional[Union[int, Tuple[int, int]]] = 60
class Tie(is_active=False)[source]

Bases: mutwo.parameters.abc.ExplicitPlayingIndicator, mutwo.converters.frontends.abjad_attachments.BangLastAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

Parameters

is_active (bool) –

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
class ToggleAttachment[source]

Bases: mutwo.converters.frontends.abjad_attachments.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.

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_class_name()

process_leaf(leaf, previous_attachment)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

classmethod get_class_name()
abstract process_leaf(leaf, previous_attachment)[source]
Parameters
Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)[source]
Parameters
Return type

Tuple[abjad.score.Leaf, …]

abstract property is_active: bool
class Tremolo(n_flags=None)[source]

Bases: mutwo.parameters.playing_indicators.Tremolo, mutwo.converters.frontends.abjad_attachments.BangEachAttachment

Methods:

from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

get_arguments_dict()

get_class_name()

process_central_leaf(leaf)

process_first_leaf(leaf)

process_last_leaf(leaf)

process_leaf(leaf)

process_leaves(leaves, previous_attachment)

Attributes:

is_active

n_flags

Parameters

n_flags (Optional[int]) –

Return type

None

classmethod from_indicator_collection(indicator_collection)

Initialize AbjadAttachment from IndicatorCollection.

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

Parameters

indicator_collection (mutwo.parameters.abc.IndicatorCollection) –

Return type

Optional[mutwo.converters.frontends.abjad_attachments.AbjadAttachment]

get_arguments_dict()
Return type

Dict[str, Any]

classmethod get_class_name()
process_central_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_first_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_last_leaf(leaf)
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaf(leaf)[source]
Parameters

leaf (abjad.score.Leaf) –

Return type

abjad.score.Leaf

process_leaves(leaves, previous_attachment)
Parameters
Return type

Tuple[abjad.score.Leaf, …]

property is_active: bool
n_flags: Optional[int] = None