Abjad / abjad

Abjad is a Python API for building LilyPond files. Use Abjad to make PDFs of music notation.
https://abjad.github.io
GNU General Public License v3.0
237 stars 39 forks source link

Reimplement TempoInventory around TypedOrderedDict instead of TypedList #402

Closed trevorbaca closed 7 years ago

trevorbaca commented 10 years ago

This will make it possible to say ...

tempo_inventory['allegretto']

... instead of (or in addition to) ...

tempo_inventory[2]

... which will increase the readability of segment definition.py modules.

Same probably applies to ClefInventory, TimeSignatureInventory, InstrumentInventory, PerformerInventory, MarkupInventory, OctaveTranspositionMappingInventory and PitchRangeInventory.

Do after current scores.

trevorbaca commented 7 years ago

Renamed TempoInventory to TempoList in 2.20 precisely for this reason.

Closing this issue.

If we want a true TempoInventory (with dictionary-like interface) in future then we can implement in future. And probably best to call TempoDictionary.