Overview of Partitura
mainPartitura is a lightweight Python package designed for Music Information Retrieval (MIR) researchers. It provides easy access to musical information contained in symbolic music formats (scores and MIDI performances).
Key features include:
- Note arrays: Lists of timed pitched events.
- Pianorolls: 2D time x pitch matrices.
- Rich musical elements: Support for time/key signatures, performance directives, repeat structures, pitch spellings, and voicing information.
- Alignment support: Loading score-to-performance alignments.
While music21 is better suited for computational musicology and complex score manipulation, partitura is optimized for machine learning and deep learning workflows, focusing on fast feature extraction from symbolic data.