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.
2. Find the notes
The note finder is Spotify’s Basic Pitch, which runs on TensorFlow.js: about 2 MB, fetched from this site the first time you use it. Downloads once, then stays in your browser. Your recording never leaves your device.
What counts as a note
Too many stray notes? Raise the first two. Notes missing? Lower them.
Tempo and grid
The tempo guess listens to where notes start. If it is twice or half what you hear, use Half or Double. Sheet music always snaps fully to the grid.
3. Check and edit the notes
Mouse, touch and keyboard
- Click or tap a note to delete it. Drag a note to move it; drag its right end to make it longer or shorter. Drag the background to scroll. Click the background or the bar numbers to play from there.
- With the piano roll selected: . and , pick the next and previous note, the arrow keys move it, Shift with left or right changes its length, Delete removes it, Ctrl+Z undoes, Space plays or stops.
- Changing a setting above finds the notes again from the recording and replaces your edits. Undo brings them back.
4. Save
MusicXML opens as sheet music in MuseScore (free), Sibelius, Finale and Dorico. The MIDI file opens in any music program. MIDI to hUGETracker turns it into Game Boy music.
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.