Skip to main content

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.

This tool helps to convert your music between MIDI and REMI-z representation, meanwhile facilitate manipulate the music at bar level.

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, grouped by Track object, together with time signature and tempo info of this bar.
      • Each Track object represents one instrument, contatining notes of that instrument in this bar.
        • Each Note object represent one note, including onset, offset, pitch, velocity information.

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remi_z-0.5.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file remi_z-0.5.5.tar.gz.

File metadata

  • Download URL: remi_z-0.5.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for remi_z-0.5.5.tar.gz
Algorithm Hash digest
SHA256 643d30cfc2051a6e1e46d943e6ab61a5eb845ef819c2d5e74e9e8d4299af17b2
MD5 1c7c0ddcb2924efa1d244ca305b14c12
BLAKE2b-256 20179d705da11b9615cd9b4deb552ccdae07a8e5cf28a0e1f9001f54bcc1e5ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page