Skip to content

A serializable note sequence representation and utilities.

License

Notifications You must be signed in to change notification settings

magenta/note-seq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3582550 · Feb 28, 2025
Nov 4, 2020
Feb 28, 2025
Jun 16, 2020
Jun 30, 2021
May 25, 2024
Jun 16, 2020
May 25, 2024
May 25, 2024

Repository files navigation

Build Status PyPI version

Magenta is a research project exploring the role of machine learning in the process of creating art and music.

This is the home for our serializable NoteSequence representation along with utilities for:

  • creating them from various formats (e.g., MIDI, abc, MusicXML)
  • manipulating them (e.g., slicing, quantizing)
  • extracting components (e.g., melodies, drum tracks, chord)
  • exporting them (e.g., to MIDI or audio)
  • or converting them to representations useful for model training (e.g., one-hot tensors)

To learn more see the main magenta repo and have look at the hello magenta notebook.

Installation

pip install note-seq

Notes

Importing note-seq increases the value of pretty_midi.pretty_midi.MAX_TICK to 1e10. This may change the expected behavior of pretty_midi when using it alongside of note-seq. For example, loading corrupted MIDI files with pretty_midi may result in out of memory errors.