Closed trevorbaca closed 2 years ago
Abjad 3.10 reimplements Abjad's instrument classes as frozen data classes, removes four properties from all instrument classes, and changes the name of one property.
REMOVED:
* abjad.Instrument.markup * abjad.Instrument.name * abjad.Instrument.short_markup * abjad.Instrument.short_name
CHANGED:
OLD: abjad.Instrument.allowable_clefs=("treble", "bass") NEW: abjad.Instrument.clefs==("treble", "bass")
This means that instrument classes are left with four basic properties:
>>> abjad.Flute() Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]'))
Use abjad.InstrumentName and abjad.ShortInstrumentName to handle those properties independently.
abjad.InstrumentName
abjad.ShortInstrumentName
Abjad 3.10 reimplements Abjad's instrument classes as frozen data classes, removes four properties from all instrument classes, and changes the name of one property.
REMOVED:
CHANGED:
This means that instrument classes are left with four basic properties:
Use
abjad.InstrumentName
andabjad.ShortInstrumentName
to handle those properties independently.