Manipulate your MIDI file in bar level, and converting between MIDI and REMI-z format.
Project description
This is the official implementation of the REMI-z tokenizer in the paper Unlocking Potential in Pre-Trained Music Language Models for Versatile Multi-Track Music Arrangement.
The core of this tokenizer is the Multitrack class as the data structure for multitrack music, which is a hierachical format. Here are the structural details:
- The music is represented by an Multitrack object, which is list of bars.
- Each Bar object represents all notes being played within one bar, is a list of Note object.
- Each Note object represent one note, including onset, offset, pitch, velocity information.
- Each Bar object represents all notes being played within one bar, is a list of Note object.
This Multitrack object can be create from various formats (supporting MIDI for now), and convert into various formats (e.g., MIDI, and REMI-z representation).
Music is a list of bars, or a list of instruments?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file remi_z-0.5.0.tar.gz.
File metadata
- Download URL: remi_z-0.5.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c1ee0656553356fa65bee8271f2a8ba29211b249d6fdb7c62712ea260df1049
|
|
| MD5 |
6c1f15557cf2b13a58b51dcb9b302324
|
|
| BLAKE2b-256 |
ef0dbef579a82146a59ffc3d8e75c31b834f700dda103415d751637024dfe007
|