Multi-instrument audio-to-MIDI transcriber: notes, instrument tracks and drums from any recording
open sourceApache-2.0self-hostablefree
dettato is KobiMusic's open source audio-to-MIDI transcriber: give it a recording and it writes a MIDI file with a track for each instrument and a drum track. It's a chain of four small models (28.1M parameters in all): a transcriber that finds notes on the 88 piano keys, an evidence repairer that fixes them, a grouper that sorts notes into named instrument tracks, and a drum model for drum kits and orchestral percussion. On nine public benchmark sets its maker reports a composite F1 of 59.2 against 45.1 for the 1.3B-parameter MuScriptor. It was trained on synthetic and Creative Commons recordings, with no copyrighted recordings, and code and weights are Apache-2.0, so commercial use is allowed. It runs as a Python package and a command line tool, on a CUDA GPU or (slowly) the CPU, and writes performance MIDI that keeps the recording's timing rather than quantized sheet music.
Problems it solves
- turn an MP3 of a song into a MIDI file with a separate track for each instrument
- transcribe the drums from a recording into General MIDI drum notes
- I need an open audio-to-MIDI model whose weights I can use commercially
- batch-convert a folder of recordings to MIDI from the command line
- get the notes of an orchestral recording into my DAW without transcribing by ear
- use a small music transcription model that runs on an 8 GB consumer GPU
- call a music transcription model from Python and get notes with onset, end, pitch and velocity
Features
- MIDI output with one track per instrument plus a drum track
- four-model chain: transcriber, evidence repairer, grouper and drum model
- drum kit and orchestral percussion models chosen by a router
- tuning estimate and retuning for recordings off A440
- CLI that takes files and folders recursively and writes .mid and .json
- Python API, with each stage usable on its own
- weights from the Hugging Face Hub or offline from a folder
- CUDA GPU or CPU
Limitations
- Doesn't produce quantized sheet music: it writes performance MIDI that keeps the recording's timing1
- Instrument tracks are only roughly right: on jazz about a quarter of a saxophone's notes can land in the piano track1
- No drum transcription for audio recorded below 40 kHz1
Capabilities
| Has a command line tool | plan not known |
|---|
