How to convert audio to MIDI
Prepare one useful audio part, convert it, then fix the MIDI in your DAW.
Use an isolated melody for the quickest browser conversion. For chords or a full song, separate the part you want first. No converter can turn a dense mix into a finished arrangement without an editing pass.
Step 1
Check the input against measured boundaries
Two tones can collapse
With a 220 Hz + 330 Hz dual-tone input, the detector returned one MIDI 45 event instead of two simultaneous pitches. This is a measured result from the local detector, not an accuracy claim for every recording.
More-notes setting
At sensitivity 1, the same 3-second, 0.04-amplitude input produced MIDI 45 from 0.0058 s to 2.9722 s. The note count stayed at one.
Fewer-notes setting
At sensitivity 3, that exact input still produced one MIDI 45, but from 0.0348 s to 2.9489 s. The threshold changed the boundaries, not the collapsed pitch count.
Step 2
Make the input easier to read
- Trim silence at the start and end so the note timeline begins where the performance begins.
- Keep the source part exposed. A clean WAV is useful, but a lossless format cannot fix overlapping instruments.
- Leave vibrato, slides, and expressive timing in the source if you want them represented; plan to inspect the resulting short notes and bends. If tempo is the only thing you actually need, the BPM counter answers that without converting anything.
- For a full mix, separate the stem before conversion and keep the original beside the separated file for comparison.
Step 3
Use the dual-tone reading to choose the repair
Keep the source and export together, then apply the repair that matches this new measured signature:
- Collapsed chord: compare the MIDI note count with the number of simultaneous tones you fed in. One MIDI 45 for 220 Hz plus 330 Hz means the chord needs a different workflow or manual note entry.
- Boundary shift: sensitivity 1 opened the event at 0.0058 s and sensitivity 3 at 0.0348 s. Preserve the source attack before quantizing either edge.
- Held-note end: the same settings ended at 2.9722 s versus 2.9489 s. Check the release against the audio instead of assuming the longer event is correct.
- Reproducibility: log the dual-tone frequencies, 3-second duration, 0.04 amplitude, sensitivity level, pitch, and start/end times beside the MIDI.
This is a measured dual-tone boundary case for the local detector. It is evidence about this input and settings, not a universal instrument accuracy percentage.
Quick answer
What should you convert first?
Start with the cleanest isolated part you can export. If that part works, continue with the rest of the stems. If it does not, changing brands before checking the source usually hides the real problem.
Read the polyphonic separate, convert, repair workflowMeasured boundaries
What the detector can and cannot read, from tested inputs
The detector declares a 55–1,400 Hz fundamental range, but the measured lower bound is higher. At 44.1 kHz the search loop's maximum lag is capped at 512 (half the 1,024-sample frame), so the true lower limit is about 86 Hz, not 55 Hz. In practice, pure tones below 170 Hz collapse to MIDI 89 across all three sensitivity levels, and notes shorter than 55–110 ms (depending on sensitivity) are dropped entirely.
| Input | Sensitivity 1 | Sensitivity 2 | Sensitivity 3 |
|---|---|---|---|
| 40 Hz pure tone | MIDI 89 | MIDI 89 | MIDI 89 |
| 110 Hz pure tone | MIDI 89 | MIDI 89 | MIDI 89 |
| 170 Hz pure tone | correct | correct | correct |
| 30 ms note | dropped | dropped | dropped |
| 110 ms note | kept | kept | kept |
| 220 + 330 Hz chord | 1 event (MIDI 45) | 1 event (MIDI 45) | 1 event (MIDI 45) |
These readings come from the detector's Node replication, which matches converter.js frame for frame. The chord collapse is the detector's single-pitch-track design: two simultaneous tones produce one estimated pitch, not two. A dual-tone 220 + 330 Hz input returned MIDI 45 at every sensitivity, with only the start and end times shifting (0.0058 s vs 0.0348 s at the attack, 2.9722 s vs 2.9489 s at the release).
Sources. Low-frequency readings: run-lowfreq.js (40/55/110/150/160/170/220/440 Hz). Missing-notes readings: run-missing-notes.js (30–300 ms durations). Dual-tone readings: run-three-tone.js. All logs in localmidi-private/logs/. The detector is a Node replication of converter.js (frameSize 1024, hop 256, minLag 31, maxLag 512, unnormalised autocorrelation, ±1 semitone merge).
FAQ
Convert audio to MIDI: common questions
How do I convert audio to MIDI?
Choose an audio file (WAV, MP3, M4A, OGG, or FLAC, up to 20 MB) in the converter on this site, select a note sensitivity level, and click Convert. The detector analyses the first audio channel for a single pitch line and writes the result as a one-track MIDI file at 120 BPM, 480 ticks per quarter note. Download the file and open it in your DAW.
What kind of audio converts best?
An isolated, single-note melody. The detector follows one pitch line at a time. Chords, full mixes, and overlapping instruments will not separate into individual notes. A clean WAV of a soloed part — vocal, bass, guitar, or synth lead — gives the most usable result.
Why are some notes missing from the MIDI?
Notes shorter than 55–110 ms (depending on the sensitivity setting) are dropped by the minimum-duration gate. Notes below about 170 Hz may collapse to a wrong pitch. Quiet notes below the amplitude threshold are not detected at all. Check the source against these measured limits before assuming the converter is broken.
Does converting audio to MIDI preserve the instrument sound?
No. MIDI stores note events — pitch, start time, duration — not audio. The MIDI file triggers whatever instrument you load in your DAW. The original tone, effects, and stereo image are not in the file.