MusPy
Toolkit for symbolic music: convert between MIDI/MusicXML/ABC and load ML datasets.
| Language | Python |
|---|---|
| Category | Composition & notation |
| License | MIT |
| Platforms | macOS Windows Linux |
| Install | pip install muspy |
| First released | 2020 |
| Maintained | Not actively maintained (last activity 2024) |
| Links | Website · Source |
Strengths
- Unified representation across MIDI, MusicXML, ABC and JSON
- Built-in loaders for many symbolic-music datasets
- Metrics and visualization for generative research
Limitations
- No new PyPI release since 0.5.0 (2022)
- Symbolic data only, not audio
Best for
Preparing and converting symbolic music datasets for machine-learning research.
Minimal example
import muspy
music = muspy.read_midi("song.mid")
muspy.write_midi("out.mid", music)