MakeItMidi

← Back to the Voice to MIDI converter

Can voice to MIDI work in real time?

Yes, but "real time" does not mean "instant." Pitch-to-MIDI hardware and certain plug-ins fire note events as you sing, but every real-time system adds delay at three stages: the analysis window, the tolerance filter, and the output buffer. The same scoops and vibrato that wreck a recorded conversion also wreck a live one, and a live system gives you no file to edit afterwards.

Diagram showing three sources of delay in real-time voice to MIDI: an analysis window that must wait for enough audio to estimate pitch, a tolerance filter that holds notes until they stabilise, and an output buffer that batches events before sending them to a synthesizer.

What "real time" actually means in this context

Real-time voice to MIDI is not the same thing as zero-latency voice to MIDI. When someone says a device or plug-in converts voice to MIDI "in real time," they mean the conversion happens during the performance, not after a recording is saved. The singer sings, the detector tracks the pitch, and MIDI note events come out while the sound is still in the air. That is fundamentally different from what the converter on this site does, which decodes an entire recorded file, analyses every frame, and writes a finished .mid file you can open in a piano roll.

The two approaches solve different problems. A real-time system lets you perform with your voice as a controller — singing into a synth, triggering samples, or controlling parameters live. A file-based system lets you capture a melody you already sang and edit it afterwards. The file-based system gives you a complete, editable MIDI file; the real-time system gives you a stream of events that you can record into a sequencer but cannot undo mid-performance.

The converter on this site is deliberately not real-time. When you click Convert, the browser reads the entire file into an ArrayBuffer with FileReader.readAsArrayBuffer, decodes it with decodeAudioData, resamples it to 22,050 Hz mono through an OfflineAudioContext, runs the pitch model over every frame, and only then writes the notes into a Standard MIDI File. There is no microphone input, no streaming, and no live output. This is a design choice, not a limitation: the model needs the full audio context to make its best decisions about where notes start and end, and that requires looking ahead and behind each frame.

Where the delay comes from: three stages

Every real-time pitch-to-MIDI system — whether it is a hardware vocoder, a DAW plug-in, or a standalone app — introduces delay at three stages. Understanding these three stages tells you why "real time" never means "instant" and why lowering the latency at one stage often makes the conversion worse.

1. The analysis window

Pitch detection works by examining a window of audio samples and estimating the fundamental frequency within that window. The window has to be long enough to contain at least a few cycles of the lowest pitch you want to detect. For a low male voice around 80 Hz, one cycle is about 12.5 ms, so the window needs to cover several cycles — typically 30–50 ms — before the detector can make a confident estimate. That means the note event always comes out at least one window-length after the singer started the sound. You cannot shrink the window to zero without losing the ability to detect low pitches.

2. The tolerance filter

Once the detector has an estimate, it must decide whether to commit to a note. A brief pitch wobble during the onset of a sung syllable — the scoop, the consonant, the breath — should not fire a note event. So the system holds the estimate for a short time to see if the pitch stabilises. This is the tolerance filter, and its job is to reject false notes. The trade-off is direct: a longer tolerance means fewer false notes but more delay. A shorter tolerance means less delay but more wrong notes. This setting is sometimes exposed as "confidence threshold" or "minimum note length," and it is the single biggest source of adjustable latency in a real-time system.

3. The output buffer

After the detector commits to a note, the MIDI event still has to travel to its destination. USB MIDI adds roughly 1–2 ms. A DAW's MIDI input buffer may add a frame or two of audio buffer delay (typically 1–10 ms depending on buffer size). If the system batches events to reduce jitter, that adds another round of waiting. These are small numbers individually, but they add up, and they are the reason a real-time system can feel slightly behind even when the pitch detection is fast.

Why the same wrong notes happen live and recorded

Real-time does not fix the pitch-detection problems that plague file-based conversion. The detector still has to quantise a continuously moving pitch to the nearest semitone, and the same three error patterns occur in both modes.

Scoop. When you slide into a note — the way most singers start a phrase — the detector sees a pitch ramp passing through several semitone values before it settles. In real-time mode, the tolerance filter may reject the ramp entirely (producing a late note onset) or fire a chain of chromatic neighbours before the target pitch arrives (producing a run of wrong notes). In file-based mode, the same ramp produces the same wrong notes, but you can delete them in a piano roll. The scoop is a property of the singing, not the processing mode.

Vibrato. A vibrato that swings wider than a quarter tone causes the detector to oscillate between two adjacent semitones, producing a rapid alternation of two note numbers instead of one sustained note. This happens identically in real-time and file-based modes. The fix in both cases is the same: widen the pitch tolerance so the vibrato stays within one note's range. But in real-time mode, widening the tolerance means the system will also miss intentional semitone changes, so there is no setting that solves both problems at once.

Tremolo vs vibrato. Vibrato is pitch oscillation; tremolo is amplitude oscillation. They feel similar to the singer but they break the detector in opposite ways. Vibrato splits one note into many; tremolo makes the detector think the sound stopped and started again, producing a burst of short notes. The fix for vibrato is to widen pitch tolerance; the fix for tremolo is to lower onset sensitivity. Doing the wrong one makes the problem worse. This is true regardless of whether the system is running live or on a file.

Recorded vs real-time: what you gain and lose

A file-based converter — the kind on this site — has one structural advantage over any real-time system: it can look ahead. Because the entire audio is available before the first note is written, the model can see what comes after each frame. If a pitch dips briefly and then recovers, the file-based system can decide that the dip was a vibrato excursion, not a new note. A real-time system cannot do this, because at the moment the dip happens, it has not yet heard the recovery. The trade-off is that the file-based system cannot produce anything until the entire file is processed.

Conversely, a real-time system has one structural advantage: immediacy. You can sing and hear the result change as you change what you sing. No file-based system can do this. But that immediacy costs you the ability to edit before the notes are committed. If the real-time detector fires a wrong note during a performance, that note is already in the sequencer. You can edit it afterwards, but at that point you are doing the same work you would have done with a file-based converter — just with less information, because the real-time system's decisions were made without lookahead.

The output format is the same in both cases: a Standard MIDI File with note-on and note-off events, optionally accompanied by pitch-bend events. Whether the file was produced by a real-time plug-in recording events into a MIDI track or by a file-based converter analysing a recording, the .mid file contains the same types of data: note numbers, start times, durations, velocities, and optional pitch-bend values. The difference is in how the decisions were made, not in what the file contains.

Short Q&A

Is there a microphone that sings straight to MIDI without recording first?

Yes — pitch-to-MIDI hardware and controller interfaces exist that analyse an incoming signal and fire note events in real time. The trade-off is immediacy for editability: you get live output but no file to correct afterwards. See the hardware route page for what each category does and what we do not claim about specific products.

Why does my real-time converter have a delay?

Three stages: the analysis window must gather enough audio to estimate pitch, the tolerance filter must hold a candidate note until it stabilises, and the output buffer must transmit the event to its destination. You can lower the delay at each stage, but lowering it too far produces more wrong notes. The tolerance filter is usually the biggest contributor and the only one you can meaningfully adjust.

Can I get the same MIDI file from a real-time session and a recorded conversion?

The file format is the same — both produce a Standard MIDI File with note events and optional pitch-bend events. But the content will differ, because a real-time system makes decisions without seeing what comes next, while a file-based system can look ahead and smooth out brief pitch excursions that a real-time system would have already committed as separate notes.

Does humming reduce the real-time delay?

No. Humming reduces the number of wrong notes by giving the detector a steadier fundamental with fewer consonant interruptions, but it does not change the analysis window size, the tolerance filter threshold, or the output buffer. The delay is set by the system's parameters, not by the input. See the humming page for why humming converts more cleanly.

Convert a voice recording to MIDI

Related questions