Passaggio (Audio-to-MIDI Editor)
Can audio-to-MIDI transcription preserve a performer’s phrasing and dynamics in a concert video shot on a phone?
Project overview
- Situation
- A live recording captures a performance, but a musician may still want to change an individual note.
- Task
- Turn a recorded part into MIDI notes that a musician can hear, edit and reuse.
- Action
- Used a coding agent to connect transcription models to a piano roll for playback, note editing and MIDI export.
Tools and AI assistance
AI-assisted development using existing Transkun, Basic Pitch, ADTOF, and Demucs models. Training and evaluation code, settings, and results are linked for inspection.
- Result
- Turns recordings into editable notes.
Process
In the bass demo, Basic Pitch turns a recording into a first draft of the part. A musician can play those notes back in the piano roll, move a misplaced note or shorten one that rings too long, then listen again before exporting the MIDI.
For drums, HT-Demucs isolates the kit and ADTOF identifies the hits. The evaluation compares the original model with a fine-tuned version on 23 real drum recordings.
Passaggio in use
Recorded in the updated macOS app on 25 October 2026: a 20-second bass recording is converted, inspected, edited, and previewed. Silent demo; file selection and processing waits are shortened.
Research progress
- Completed
Music workflow
Transcription, separation, piano-roll editing, audition, and export.
- Completed
Held-out evaluation
Slakh test 20 rendered mixes and MDB 23 real recordings; per-song and per-class scoring.
- Completed
Fine-tuning & decision
Full and frozen-block adaptation compared; rejected after real-recording regression.
- Not started
Generalization & usability
Secure real-recording training data, test rehearsal, and measure MIDI correction effort.
ADTOF · HT-Demucs stems · 5-class onset F1 · per-song mean · 50 ms tolerance
| Evaluation | Pretrained A0 | Frozen A4f |
|---|---|---|
| Slakh validation · 16 songs | 0.695 | 0.786 |
| MDB real recordings · 23 songs | 0.859 | 0.816 |
Decision: reject fine-tuning; retain pretrained weights. The paired per-song MDB F1 difference is −0.043, with a 95% bootstrap interval of [−0.066, −0.022]. A4f, selected on validation F1, freezes the convolutional and batch-normalization block.
Training used 40 Slakh train songs, with 16 separate validation songs. Real-recording rehearsal was not run because of data-access constraints. The reversal is consistent with domain shift or forgetting, but does not establish either cause.
Experiment report ↗ · Validation data ↗ · Real-recording data ↗
Comparison conditions and class-level changes
Full fine-tuning A1: Slakh 0.760, MDB 0.816. The A1 MDB evaluation was an additional reference run outside the single-candidate selection rule. A4f MDB class F1: kick 0.902 → 0.932, cymbal 0.680 → 0.723, hi-hat 0.810 → 0.747, tom 0.586 → 0.528.
Training settings and freezing implementation ↗Earlier experiment: seven-song synthetic LOSO
Seven folds trained the earlier classifier on six songs, excluding each evaluation song. Mean F1: mixture 0.384, Demucs stem 0.752, reference stem 0.763. The model and dataset differ from the current ADTOF experiment, so these scores are not a direct before/after comparison.
Recorded LOSO results ↗ · Evaluation configuration ↗Photos and screenshots



