craffel/pretty-midi
Utility functions for handling MIDI data in a nice/intuitive way. observed · 2026-08-28
Health v2 · maintenance only
57/100
- Activity 68
- Release rhythm 19
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4780
- days_rel: 329
- days_push: 196
- n_releases_24m: 1
Adoption not part of the score
1034 stars · 169 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library providing utility functions and classes for conveniently handling, analyzing, creating, and manipulating MIDI data. It supports loading MIDI files, extracting musical features like tempo and chroma, editing notes, and synthesizing audio.
Use cases
- parse midi files in python
- analyze tempo and key of a midi song
- programmatically create midi files
- convert midi notes to audio
- extract features from midi for music machine learning
- transpose notes in a midi track
When to choose
- you need an intuitive Python API for reading, writing, or editing MIDI data
- you're doing music information retrieval research or feature extraction from MIDI
- you want to synthesize MIDI to audio within Python
When to avoid
- you need real-time MIDI playback or live performance features
- you're working with audio files rather than MIDI data
- you need a full-featured digital audio workstation
Facets
library · maturity maintenance
audio-processing parser data-science audio machine-learning data-science python cross-platform midi music-information-retrieval audio-synthesis music-notation audio
2 sources
- readme: https://github.com/craffel/pretty-midi · fetched 2026-08-28 · c0eaa1c099e9
- registry_pypi: https://pypi.org/pypi/pretty-midi/json · fetched 2026-08-29 · 4f4274dfd941
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| craffel/pretty-midi | main | 57 |
For agents
markdown · JSON · MCP: product_card(name="craffel/pretty-midi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem