note-seq
Serializable NoteSequence representation and utilities from Google Magenta for music ML.
| Language | Python |
|---|---|
| Category | ML & generative |
| License | Apache-2.0 |
| Platforms | macOS Windows Linux |
| Install | pip install note-seq |
| First released | 2019 |
| Maintained | Not actively maintained (last activity 2025) |
| Links | Website · Source |
Strengths
- Standard note representation across Magenta models
- Converts between MIDI, protobuf, and piano-roll
- Permissive Apache-2.0 license
Limitations
- Unmaintained: last release 2022
- Mainly useful as a Magenta dependency
Best for
Representing and converting symbolic music data in ML generative pipelines.
Minimal example
import note_seq
seq = note_seq.NoteSequence()
seq.notes.add(pitch=60, start_time=0.0, end_time=0.5, velocity=80)
note_seq.sequence_proto_to_midi_file(seq, 'out.mid')