← Back to the Voice to MIDI converter
What does a voice to MIDI test reveal about the conversion?
We fed four synthesised test files into our own converter and published exactly what came back. The clean five-note file returned the right five pitches, as seven events — the two extra ones are splits at the joins between notes. A single held note with ordinary vibrato came back as 21 notes. And the scoop that is usually blamed for a flat first note did not reproduce: a 150 ms glide from B3 up into C4 still came back as C4.
Source note: every number on this page is the converter's own output on files we generated and still hold, so you can rebuild them and check the result. The input is synthesised tone, not a human voice — what that does and does not tell you is set out below. An earlier version of this page reported a sung take; that recording is no longer held on our side, so it has been replaced by the measurements we can actually show.
The pipeline, in the converter's own terms
This needs stating precisely, because the earlier version of this page described the analysis in terms
that did not match the code the page loads. Everything below is read from that code —
/bp/app.bundle.js, called from script.js.
- Decode. The file is decoded with the Web Audio API's
decodeAudioData. Nothing is uploaded; the audio never leaves your machine. - Resample. It is mixed to mono and resampled to 22,050 Hz inside an
OfflineAudioContext, the rate the model expects. - Analyse. The pitch analysis is Basic Pitch, Spotify's polyphonic transcription model, running in TensorFlow.js on the CPU. It is a neural network that scores everything it might be hearing at once, rather than following one pitch through the clip: for every time frame it produces an activation for each of 264 pitch bins — 88 keys at three bins per semitone, a third of a semitone apart — with a frame roughly every 11.6 ms.
- Read notes off that grid. A note starts where the onset score passes 0.25, continues while the frame score stays above 0.25, and is discarded if it ends up shorter than 5 frames, about 58 ms. Those three numbers are arguments in the call that converts the model's output into notes. They are not exposed as settings, and there is no control on the page that changes them.
- Write the file. The notes become a Standard MIDI File: format 1, 480 ticks per quarter note, an empty conductor track plus one note track, a program change to acoustic grand, and pitch-bend events taken from the model's pitch contour. No tempo event is written, so a player falls back to the MIDI default of 120 BPM.
Two consequences explain most of what follows. Because the model scores many pitches at once, a second voice or a chord is not a competing signal to be rejected — it is more material, and it gets transcribed too. And because a note needs roughly 58 ms of sustained score to survive, events near the threshold either disappear or come back chopped into pieces.
The four test files
Generated rather than recorded, so the input is exact and repeatable. All four are 44.1 kHz, 16-bit, mono, with 5 ms fades at every note edge so there are no clicks:
| File | What is in it |
|---|---|
| A — clean | Five notes — C4, E4, G4, E4, C4 — one second each with a 0.15 s gap between them. Every note starts on pitch. |
| B — scoop | The same five notes, except the first starts on B3 and glides up to C4 over 150 ms. Nothing else changes. |
| C — vibrato | One note, E4, held for two seconds with ±0.7 semitone of vibrato at 5.5 Hz — wide enough to cross the semitone lines above and below it. |
| D — glide | E4 held for 0.8 s, a 300 ms glide up to G4, then G4 held for 0.8 s. |
What came back
| File | Notes returned | Pitches returned | What happened |
|---|---|---|---|
| A — clean | 7 | C4, E4, G4, E4, C4, plus two fragments | Right pitches, split at the joins |
| B — scoop | 8 | C4, E4, G4, E4, C4, plus three fragments — no B3 | The scoop did not survive as a wrong pitch |
| C — vibrato | 21 | E4, F4 and D#4, alternating | One held note became twenty-one |
| D — glide | 4 | E4, F4, F#4, G4 | A chromatic run through the slide |
Finding 1: clean notes come back on pitch, but not as five notes
Here is the raw output for file A, copied from the page:
C4 4.60s → 5.55s E4 3.45s → 4.47s G4 2.30s → 3.32s E4 2.10s → 2.18s E4 1.15s → 2.10s C4 0.94s → 1.03s C4 0.00s → 0.94s
Five notes went in and seven events came out, but nothing was misheard: the pitch of every event is correct. The two extra events are C4 0.94–1.03 and E4 2.10–2.18, and both of them sit exactly across a gap — the first spans the 1.00–1.15 s silence, the second spans 2.15–2.30 s. Each note comes back slightly short of its true end and a fragment bridges the gap at the pitch of the note before it.
That is the practical answer to "why does my MIDI have more notes than I played". On clean input the count is inflated by joins, not by wrong pitches, and the fix is to delete or glue the fragments rather than to correct any note number. The 58 ms minimum explains why the fragments are short but not zero: they are long enough to clear the floor, and the model has no reason to prefer a single note over two adjacent ones.
Finding 2: the scoop did not reproduce
This is the finding that changed the page. The usual explanation for a first note that comes back a semitone flat is that the singer slid up into it and the converter read the slide before the pitch settled. We built that exact case: file B is identical to file A except that the first note starts on B3 and glides to C4 over 150 ms. If the scoop story were right, the first note should come back as B3.
It came back as C4. The only difference from file A is that the opening note is split at 0.09 s:
C4 0.09s → 0.94s C4 0.00s → 0.09s
Both fragments are C4. There is no B3 anywhere in the eight events. So on this input the scoop cost a split, not a semitone — and the tidy diagnostic rule this page used to carry, "first note flat means a scoop, re-sing the opening", is not supported by our own measurement. We have removed it rather than keep a rule the tool does not obey.
Inference, and why it is only an inference: a sung scoop is not a 150 ms sine glide. A voice carries harmonics and formants, the glide is usually shorter, and a consonant may sit in front of it. Any of those could still push the opening note onto the wrong bin. What we can say is what we measured: with the slide isolated as the only variable, the pitch was right. If your first note comes back wrong, it is worth checking the take before assuming the cause.
Finding 3: vibrato does far more damage than the count suggests
File C is one note — E4, held for two seconds — with ±0.7 semitone of vibrato at 5.5 Hz. That rate and depth sit inside the range usually quoted for singing vibrato, so this is not an extreme case. The converter returned 21 notes, alternating between E4, F4 and D#4, none of them longer than 0.24 s:
E4 1.89s → 1.99s F4 1.82s → 1.89s D#4 1.73s → 1.80s E4 1.71s → 1.82s F4 1.64s → 1.71s D#4 1.53s → 1.60s ...21 events in total
This is the mechanism from the pipeline doing exactly what it says. Each time the vibrato swings past a semitone line, the neighbouring bin out-scores the centre bin for long enough to clear the 58 ms floor, so a note is emitted there. The earlier version of this page guessed "five or six short notes" for a held note with heavy vibrato; the measured figure on a two-second note is 21, roughly one per half-cycle of the vibrato.
There is no setting to change this. The thresholds are fixed in the bundled call, and the page exposes no controls beyond choosing a file. The only lever is the input: a take with narrower vibrato, or a sustained note treated as one long note in the DAW afterwards.
Finding 4: a slide fills in the semitones
File D holds E4, slides up to G4 over 300 ms, and holds G4. Four notes came back:
G4 1.04s → 1.88s F#4 0.93s → 1.04s F4 0.84s → 0.93s E4 0.00s → 0.84s
Every semitone between the two notes is present as its own short note — F4 for 90 ms, F#4 for 110 ms. A two-note slide therefore imports as a four-note chromatic run. If you want the slide kept as a bend rather than a run of notes, the pitch-bend data is the part to look at: the file carries bend events generated from the model's contour, which is what the pitch-bend page covers.
What this test does not show
Worth being blunt about, because a test page that oversells itself is worse than no test page.
- It is not a voice. Sine tones have one partial each. A real voice has harmonics and formants, which give the model more to work with and can also pull it onto the wrong octave. Nothing here measures a sung take.
- No consonants, no breath, no room. The syllables, plosives and background noise that cause ghost notes in real recordings are absent from all four files.
- One register, one key, four files. C4–G4 only. Behaviour an octave lower, or on a dense chord, is not covered.
- One build of the model. These numbers describe the bundle this site serves today. A different model version, or a different backend, could score differently.
- The scoop case used a long glide. 150 ms is slower than a typical vocal scoop, so the negative result in Finding 2 is evidence against the strong form of the scoop story, not proof that no scoop can ever cost a semitone.
We are still not publishing an accuracy percentage. A single figure would have to average over material this test does not contain, and the four files above already disagree with each other by a factor of five in note count for the same musical content.
How to run this test yourself
The converter is on this site, so the test costs nothing and takes a few minutes:
- Open the Voice to MIDI converter and grant microphone permission, or upload a file.
- Sing or play five notes you already know — C, E, G, E, C is the phrase used above — with a clean attack on each and a short gap between them.
- Press Convert to MIDI and read the list the page prints.
- Compare that list to what you put in. Count the events before you judge the pitches: as file A shows, a correct result can still be seven events for five notes.
- Download the
.midand open it in your DAW to see the notes and the bend data.
One detail about that list: it prints each note's name, its start and end time in seconds, and how many pitch-bend points it carries — not a MIDI note number. If you want the number, C4 is 60, C#4 is 61, D4 is 62, and so on.
What a reproducible test proves that a claim does not
A page that says "our converter is accurate" is making a claim nobody can check without running it. A page that says "here is the file, here is the note list it produced, and here is the case where our explanation failed" is showing the work. The second kind is also the only kind that can be corrected: the scoop section above changed because the test contradicted it, and it could only change because there was a test to contradict.
We still do not compare our output to a competitor's. We have not run the same four files through every other converter, and a comparison without controlled conditions would be another claim we cannot back up. What we can back up is the input, the output, the pipeline, and the four results above.
Short answers to related questions
Can I test voice to MIDI before using it on a real recording?
Yes, and it is worth doing. Sing a short phrase of known notes, convert it, and count the events as well as reading the pitches. That tells you what to expect from your own voice and room, which is more useful than any published accuracy figure.
Why is the first note of my conversion wrong?
Do not assume it is a scoop. We tested that directly with a 150 ms glide into the first note and the pitch came back correct — the glide only caused an extra split. If your opening note is off, check whether the take itself started flat, whether a consonant or breath landed on it, and whether the note was shorter than about 58 ms.
Does vibrato affect the MIDI output?
Yes, heavily. One held E4 with ±0.7 semitone of vibrato at 5.5 Hz came back as 21 notes alternating between E4, F4 and D#4. The converter has no vibrato or grouping setting, so the fix is on the input side or in the DAW afterwards.
Can I widen the grouping window?
No. The page exposes a file input, a record button, a convert button, a download button and a copy button, and nothing else. The onset threshold, frame threshold and minimum note length are fixed at 0.25, 0.25 and 5 frames inside the bundled code.
What is the best input for a clean voice to MIDI conversion?
A single melody line, one note at a time, in a quiet room, with a clean attack and a short gap between notes. Avoid wide vibrato, slides between notes, hard consonants and background noise — each of those shows up in the output as extra notes rather than as wrong ones.
Try the Voice to MIDI converter