What Kind of Audio Converts to MIDI Cleanly
MIDI stores notes, timing and velocity, not sound. See which recordings convert to MIDI cleanly, which do not, and how to tidy the notes you get.
A clean recording of one voice or one instrument playing one line converts to MIDI well. A full mix with drums, bass and chords does not. MIDI is a list of notes with no sound in it, so a converter has to work out from the audio which notes were played, and that is only easy when one thing is playing.
Our audio to MIDI converter shows the notes it found on a piano roll, plays them against the recording and saves a .mid file. What you feed it decides how much cleanup is left.
What a MIDI file holds
MIDI is performance data. Each note is a note-on and a note-off message carrying a note number from 0 to 127 (middle C is 60), a time for each, and a velocity from 1 to 127 that says how hard the note was played. The file also stores tempo and time signature.
It holds no sound. The tone of the instrument, the room it was recorded in and the words of a song are not in the file. Load a piano and the notes play as a piano. Load a bass and the same notes play as a bass.
The file from our converter is a format 0 Standard MIDI File: one track on channel 1 with the tempo you set, a 4/4 time signature and the notes. It has no pitch bends and no instrument assigned. MIDI explained: notes, channels and files goes through each of those parts.
What the converter listens for
The converter runs Basic Pitch, an open-source model from Spotify, inside your browser tab. Your file is mixed down to mono, resampled to 22,050 Hz and analyzed about two seconds at a time. Nothing is uploaded. The model is about 225 KB and loads from our site after you pick a file.
For each moment the model reports how strongly it hears each of the 88 piano keys, from A0 to C8, and whether a note starts there. The page turns those readings into notes. That design has consequences:
- Several keys can be active at once, so chords are possible.
- Every note snaps to a piano key. Vibrato is flattened, and a slide or a wide bend comes out as one held note or as a stutter of neighboring semitones.
- Velocity is set from how strongly the model registered the note, which is a different thing from how loud you played.
- There is no drum output. A drum hit is either ignored or turned into a wrong note.
What converts well, from cleanest to worst
- One voice or one instrument, one note at a time. A sung or hummed melody, a whistled tune, a flute, a bass line, a guitar solo. This is monophonic material: each moment has a single pitch to find.
- One instrument playing several notes at once. Solo piano or fingerpicked guitar is polyphonic. The model handles it, with more errors. Overtones show up as extra notes above the real ones, and quiet notes inside a chord go missing.
- Either of those in a poor recording. Heavy reverb, a held sustain pedal, background noise or a microphone across the room. Notes ring into each other, so note ends come late and soft notes are lost under the wash.
- A full mix. Drums have no pitch and produce a scatter of false notes. Bass, chords and vocal overlap. Everything lands on one track with nothing to say which instrument played what.
If the part you want is the vocal of a finished song, split the song first with the vocal remover and convert the Vocals stem. The stem has artifacts of its own, but it is much closer to one voice than the mix was.
For your own ideas, record close and dry, in a quiet room, with no backing track playing through speakers. The voice recorder saves a WAV you can drop straight into the converter. Files up to 10 minutes are accepted.
Settings to fix before you download
The settings under the piano roll change the notes straight away, even during playback.
- Lowest note and Highest note. Set them to the range of your instrument or voice. Anything outside is ignored, which removes overtone ghosts above and rumble below in one move. The line above the piano roll shows how many notes were found and the lowest and highest. A sung melody that reports a range of four octaves has ghosts in it.
- Note sensitivity starts at 50%. Lower it to keep only the clear notes. Raise it to find fainter notes, at the cost of more wrong ones.
- Minimum note length starts at 125 ms and runs from 30 to 500. Notes that short or shorter are dropped. Raise it to clear blips. Lower it for fast playing: at 120 BPM a sixteenth note lasts 125 ms, right at the default cut-off.
- Tempo starts at 120 BPM and runs from 20 to 300. Notes keep their real times in seconds, so the tempo does not move them. It sets where your music software draws the bar lines. Set it to the tempo of the performance. If you do not know it, tap along with the recording in the BPM delay calculator.
Press Play original, then Play notes. The notes play on a plain synth, so compare pitch and timing and ignore the tone. When they match, press Download .mid.
Cleaning up in your music software
Work in this order. Quantizing first locks mistakes onto the grid.
- Delete ghost notes. The suspects are very short notes, notes with low velocity, notes outside the instrument's range and notes that sit an octave above a longer note starting at the same time.
- Fix octaves. When a note has the right name in the wrong octave, the model has usually taken an overtone for the note itself. Select it and move it 12 semitones.
- Join split notes. One long note sometimes arrives as two with a small gap. Delete the second and lengthen the first.
- Line up the grid, then quantize. Check that the project tempo matches the tempo you saved, slide the notes so the first downbeat sits on a bar line, and quantize to the shortest note value the part really uses. A line sung freely with no click has no grid to snap to. Leave it loose or move notes by hand.
- Reset velocities. Even them out, then shape the dynamics by ear.
What the result is good for
- Transcribing a melody. The piano roll gives you pitches and rhythm to read off, or to open in notation software. If the melody comes from a song, the key finder names the song's key, and notes outside that scale are the first ones to double-check.
- Doubling a part. Convert a sung or played line, put a synth, strings or a bass on the MIDI track and layer it under the original audio. Import the file at the tempo you saved and the notes line up with the recording they came from.
- Sketching. Hum a bass line or a riff and get notes you can edit, transpose and hand to any instrument. To play parts in by hand as well, see MIDI keyboard specs explained.
Common mistakes
- Converting a whole song and expecting separate parts. Every note arrives on one track. Use the audio to MIDI converter on one part at a time.
- Leaving the pitch range at A0 to C8 for a voice that covers an octave and a half.
- Quantizing before the tempo and the first downbeat are set.
- Expecting the MIDI to sound like the recording. It carries notes. The sound comes from the instrument you load.
- Trusting the velocities as dynamics.
- Recording with reverb, or with the backing track playing in the room.
- Feeding it drums.
- Loading a file longer than 10 minutes. The converter refuses it, so trim first.
- Forgetting whose tune it is. A MIDI file of someone else's song is still their composition.
Sources
More guides
- MIDI Explained: Notes, Channels and Files
What a MIDI message carries, how note numbers map to pitch, what the 16 channels are for and what a .mid file from our converter contains.
- MIDI Keyboard Specs Explained
Read a MIDI keyboard spec sheet question by question: key count, key action, aftertouch, pads, knobs and connections, with counts from 137 products.
- How to Choose a Digital Piano
88 keys, weighted action, polyphony, pedals, speakers and connections: what a digital piano spec sheet tells you, with counts from 112 pianos.
- A4 = 440 Hz and Note Frequencies Explained
Work out the frequency of any note from A4 = 440 Hz, read MIDI note numbers, and see what 432 Hz changes: a shift of about 32 cents.