01 / Drop
Choose a recording
One instrument or a voice works best: a melody, a piano part, a guitar line.
Free tool
Turn a hummed melody, a piano take or a guitar riff into a MIDI file you can open in GarageBand, Logic, Ableton or any DAW. Spotify's open Basic Pitch model listens in this tab, shows the notes on a piano roll and plays them back, so your recording is never uploaded. No sign-up, no limit.
Need a custom tool, app or website? Contact us →Settings
MIDI file
The settings change the notes straight away; the sound is not read again. The tempo is guessed from the notes; change it to match your song. Your settings are remembered.
This runs in your browser. Your recordings are never uploaded.
How it works
01 / Drop
One instrument or a voice works best: a melody, a piano part, a guitar line.
02 / Listen
They appear on a piano roll. Press Play, and adjust how many notes to keep.
03 / Save
Open it in your music app to change the sound, fix notes or add parts.
Guide
An audio to MIDI converter listens to a recording and writes down the notes it hears as a MIDI file. The MIDI file holds no sound: it is a list of which keys were played, when, for how long and how hard, which any music app can then play with any instrument. This converter uses Basic Pitch, an open model from Spotify, and it can pick out several notes at once, so a chord on a piano or a strummed guitar comes through as a chord.
.mid.| Setting | Options | Change it when |
|---|---|---|
| How many notes | Fewer, only clear notes; Balanced; More, catch quiet notes | Pick Fewer if you see stray notes above the real ones. Pick More if soft notes are missing. |
| Note length | Shorter, Normal, Longer | Pick Longer for sustained piano or held singing that gets cut short. Pick Shorter for plucked or staccato parts. |
| Shortest note | 30 to 300 ms, 128 ms to start | Raise it to drop tiny blips from breaths, string noise or clicks. Lower it for fast runs and trills. |
| Source | Anything; Voice or humming; Guitar; Bass; Whistle, flute or recorder | Pick what you recorded and notes outside its range are left out, such as overtones far above a sung melody or rumble below a whistle. |
| Faint notes | Keep them all; Drop the faintest; Keep only strong notes | Drop the faintest when you see quiet stray notes high above the real ones. They are measured against the loud notes of the same recording, so a soft passage in a loud piece can go too. |
The settings only change how the notes are read from what the model heard. The sound is not processed again, so you can try every option in a few seconds.
Every real note has overtones, quieter tones above it that give an instrument its character. The model tries to tell them apart from real notes, but a loud or bright sound can still show a faint extra note an octave or a fifth above the real one. A few other things add clutter:
The page guesses the tempo from when the notes start: it tries every tempo from 40 to 208 beats a minute and keeps the one whose beats, pairs of beats and bars of four line up best with the notes, leaning towards about 110. The guess is written into the MIDI file, so the bar lines in your music app fall where your beats are. It can be off by half, double or another simple ratio, for example when every note is an eighth note with no stronger beats, so type the right tempo under MIDI file if you know it.
The notes keep the exact times you played them unless you tick Snap notes to sixteenths. Then every note starts and ends on the nearest sixteenth note, and the notes move a little so your first beat falls on the first bar line. Leave it off to keep the feel of the playing and use your music app's own quantise tool, which lets you choose how strong the snap is.
GarageBand and Logic Pro both read standard MIDI files. Drag the .mid file into the tracks area and it becomes a software instrument track you can play with any sound. The file asks for Electric Piano 1, so that is what you may hear first; pick a different instrument for the track to change it.
Need the notes as a printed score instead? Audio to sheet music uses the same model and draws the notes on a staff.
Questions
Basic Pitch by Spotify's Audio Intelligence Lab, released under the Apache 2.0 licence. It is small, 230 KB, and is served from this site. For every 12 milliseconds of sound it says how likely each of the 88 piano keys is to be playing, and the page turns that into notes the same way Spotify's own package does.
No. The model runs in this tab, so the sound never leaves your computer. No account and no limit.
One instrument or one voice at a time, recorded clearly: a sung or hummed melody, solo piano, a guitar line. A full song with drums, bass and vocals gives a crowded MIDI file; split it first with the stem splitter and convert one stem.
No. The file has the notes, their timing and how loud each is, set to Electric Piano 1 at the tempo shown under MIDI file. Slides and bends are not written, and the sound comes from whatever instrument you pick in your music app.
How many notes sets how sure the model must be that a note starts. Note length sets how long a note is held as it fades. Shortest note drops very short notes, which are often noise. Each change updates the piano roll and the file at once.
The Play button uses a simple synth so you can check the notes. The MIDI file is the real result; it sounds like whatever instrument you choose in your music app.
Audio is the recorded sound itself. MIDI is a set of instructions, which note, when and how loud, that a music app plays back with whatever instrument you choose.
Chords too. Basic Pitch can hear several notes at the same time, so piano chords and strummed guitar come through as stacked notes on the piano roll.
Yes, any MP3 under 10 minutes works. A full mix gives a crowded file, though, so for a clean melody convert just the vocals or one stem.
Yes, in this browser: the note settings, Source, Faint notes, Snap and Hear. The tempo is worked out again for each recording. Your recordings are not kept.
The 88 keys of a piano, from A0 to C8, which is MIDI note 21 to 108. Sounds below or above that range are not written.