Skip to the tool
Dunk’s Bible Palace

Audio to MIDI

Turn a recording of one instrument or a voice into MIDI notes you can edit, play back and save, or open as sheet music.

Runs on your device

Best for one instrument at a time: piano, guitar, a flute, or someone singing or humming. A full band with drums gives a muddle of notes. Expect to tidy a few notes by hand.

1. Choose a recording

Drop a recording here

or

MP3, WAV, M4A, OGG, FLAC or WebM, up to 10 minutes.

How it works

Your recording is decoded by your browser and turned into one channel at 22,050 samples a second. Spotify’s open-source Basic Pitch model then listens to it two seconds at a time, inside your browser, and says how likely each of the 88 piano notes is to be starting or sounding in every moment. The settings above decide which of those count as notes. Nothing is sent anywhere: the model comes from this site, and the recording stays on your device.

It hears pitch, not instruments, so it works best on a single instrument or voice. Drums, heavy reverb and several instruments at once confuse it. It can also add a quiet note an octave above a loud one; the melody only setting or a higher threshold usually clears those.

Tempo, the grid and sheet music

The tempo is a guess from where the notes start; you can type your own. Snapping pulls each note towards the nearest grid line by the amount you choose, so 50% keeps some of the feel. The MIDI file starts on a beat, so its bars line up in other programs. Sheet music needs exact note lengths, so the MusicXML file always snaps fully, ties notes over bar lines, and writes overlapping notes as chords.

Credits and the downloaded files

Basic Pitch 1.0.1 by Spotify and TensorFlow.js 4.22.0 by Google, both under the Apache 2.0 licence. The note finder is kept in your browser after the first time.