MIDI Transcribe
← Project Index MIDI Transcribe

MIDI Transcribe

A pipeline that pulls an MP3 apart into stems and rebuilds it as a MIDI file (and sheet music) — built to get a song onto a player piano.

Exploring Started: Nov 2026 Updated: Nov 2026

Overview

A pipeline of tools that work together to take an MP3 of a song — music and vocals — decompose it into its parts, sort out the timing, and build a MIDI file (or sheet music) as output. It was created to convert Kirky’s Hot Scrod (A Cabot Cove Lullaby) into something that could be played, and karaoke’d, on Dave’s player piano — the piano has a screen, so the lyrics ride along. It takes significant compute, but it works well.

How It Works

Each stage hands off to the next:

mp3        →  Demucs (htdemucs_ft)   split into vocals / bass / drums / other
beats      →  beat_this + a grid     12/8, ~73 bpm, snapped to eighth notes
vocal      →  CREPE + pYIN           melody, Viterbi-smoothed, word-aware (right hand)
bass/other →  basic-pitch            the accompaniment (left hand)
lyrics     →  wav2vec2 force-align    a word on every melody note, split at breaths
           →  SCROD.MID + a preview

The lyric alignment is the nice touch: each word lands on the exact note it’s sung on, and lines are broken at breath points so they fit a small piano display.

Current Status

Works end to end — feed it the MP3 and the lyric sheet, get a MIDI file and a rendered preview back.