How to convert audio to MIDI
- Drop an audio file (MP3, WAV, M4A, FLAC, OGG) onto the box, or press Record and sing, hum or play into your microphone.
- Wait while the notes are transcribed. The first run loads a 0.9 MB model from this site; after that it is cached. With graphics acceleration a three-minute song usually takes well under a minute; without it, on the CPU, expect about twice the length of the song, and longer on phones.
- Check the piano roll and press Play to hear the MIDI, the original, or both together.
- Adjust the note settings if needed, set the tempo, then press Download MIDI and drag the .mid file into your DAW or notation app.
The transcription uses Basic Pitch, an open-source neural network from Spotify’s Audio Intelligence Lab that detects multiple notes at once and follows pitch bends. Here it runs entirely inside your browser with TensorFlow.js: your recording is never uploaded.
What works well (and what doesn’t)
- Great: solo piano, acoustic or electric guitar, bass lines, singing, humming and whistling, flute, violin, synth leads. Chords are fine; the model is polyphonic.
- Okay: a voice or instrument with light accompaniment. Raise “Note confidence” to keep only the strongest line.
- Poor: full band mixes, heavy reverb, distortion and drums. Drums have no pitch, so they turn into random notes. If you only need a song’s tempo, use the BPM finder instead.
For a clean result, record close to the microphone in a quiet room. If your source is a video, pull out the soundtrack first with the audio extractor. If a recording comes out silent, check the input with the microphone test.
Understanding the settings
- Note splitting (onset threshold): how strong an attack must be to start a new note. Lower it when fast repeated notes merge into one long note; raise it when sustained notes are chopped up.
- Note confidence (frame threshold): how sure the model must be that a note is sounding. Lower it to catch quiet notes; raise it to remove ghost notes and harmonics an octave above the real note.
- Minimum note length: removes blips shorter than this. 100 to 150 ms suits most melodies; lower it for fast runs.
- Lowest and highest note: restrict the pitch range, for example E1 to G4 for a bass guitar, to drop stray notes outside the instrument’s range.
- Pitch bends: adds pitch-bend events so slides and vibrato survive. MIDI bends apply to a whole channel, so they are only written for notes that play alone.
Getting the MIDI into your DAW
Notes keep their real timing in seconds. The tempo you set decides where bar lines fall, so use the song’s tempo (press Detect or measure it with the BPM finder) and keep “line up the detected beats” on. The file then starts with a short lead-in (less than one bar) so that the beat nearest the first note falls on a bar line and every beat matches your DAW’s grid, exactly as the preview shows. Quantize only if you want robotic, on-grid timing; for expressive playing, leave it off and quantize selected parts in your DAW. The file is a standard MIDI file (type 1) with a tempo map and one instrument track, so it opens in Ableton Live, FL Studio, Logic Pro, GarageBand, Cubase, Reaper, MuseScore and others.