Missing notes after conversion? Short ones are dropped by design.

A note goes missing because it has to hold for a minimum length before it is written into the file. In a controlled run through this converter, a 30 ms note was dropped at all three sensitivity settings while a 110 ms note survived every one — same pitch, same loudness, only the length changed.

There is a harsher edge. If fewer than three notes survive, the converter does not export a partial file: it stops and asks for a longer, clearer take. A phrase that loses one short note can lose the whole download.

Select a recording to create a MIDI draft locally.

The selected audio is decoded in your browser; it is not uploaded to a server.

One length rule

A note shorter than the gate never enters the note list.

The detector works in overlapping windows: at 44,100 Hz the analysis frame is 1,024 samples advanced 256 at a time, a 23.2 ms window every 5.8 ms. Both figures come from the code, not from a measurement. Inside each window it checks loudness, then estimates one pitch by autocorrelation, then groups consecutive windows into notes — and a group is kept only if its measured span reaches a minimum that depends on the sensitivity setting.

Those minimums are constants in the source: 55 ms on More notes, 75 ms on Balanced, 110 ms on Fewer notes. A note below the gate is not mis-pitched and not flagged; it never reaches the output at all, which is why a missing-note report usually looks like a clean file with gaps rather than a file full of wrong information.

Source: code fact from converter.js — the frame derivation, the three duration constants, the grouping rule. Every table below is a local measurement taken with that same detection logic.

Measured

The cutoff moves with the sensitivity setting.

I built a three-note phrase — a long A3, a short note an octave above, then a long A3 again — and shortened only the middle note, in steps, at all three settings. Its pitch and peak level never changed. The table records whether it appeared in the output at all.

Middle note lengthMore notesBalancedFewer notes
30 msdroppeddroppeddropped
50 mskeptdroppeddropped
60 mskeptdroppeddropped
75 mskeptkeptdropped
90 mskeptkeptdropped
110 mskeptkeptkept
200 mskeptkeptkept

Test conditions. Mono 44.1 kHz signals generated in code with 3 ms fades at each edge; sine tones at A3 and one octave above, peak level 0.5; long notes 0.6 s, gaps 0.12 s, so only length varies between rows. The middle note, when it appeared, was written as MIDI 65 rather than the MIDI 64 its frequency rounds to — a one-semitone offset from lag quantisation, kept because it is in the raw output.

The pattern is the constants themselves: 50 ms clears the 55 ms gate only on More notes, 75 ms clears 75 ms but not 110 ms, and 110 ms clears everything. Nothing else in the audio explains the difference between rows. The measured span is also not the span you played — a frame covers 23.2 ms, so the 50 ms note was recorded as running 0.70 s to 0.76 s, 60 ms on paper. That is why a note can clear a gate it looks shorter than, and why the drop is not perfectly predictable from the waveform.

The harder edge

Under three surviving notes, there is no file at all.

Before writing anything the converter checks the count. Fewer than three notes and it raises an error instead of exporting. One condition in the source, but it changes what a missing note costs: on a short phrase, one dropped note is the difference between a rough draft and no download.

Middle note lengthNotes found, BalancedResult
60 ms2no file exported
90 ms3file exported
200 ms3file exported

The same phrase behaved differently by setting: at 60 ms the note was kept on More notes and dropped on the other two, and at 90 ms it was still dropped on Fewer notes, leaving two notes and no export.

A second, separate gate

Quiet notes fail later than short notes do.

Each frame is also compared against an RMS threshold before any pitch is estimated: 0.009 on More notes, 0.015 on Balanced, 0.023 on Fewer notes. A frame below its threshold counts as silence, so a quiet note loses frames at both ends and can fall under the duration gate as a side effect. I held the middle note at 150 ms, past every duration gate, and lowered only its peak level.

Peak level of middle noteMore notesBalancedFewer notes
0.5keptkeptkept
0.2keptkeptkept
0.1keptkeptkept
0.04keptkeptkept
0.02keptdroppeddropped

Read the shape, not the exact figures: loudness has far more headroom than length. A note can fall to a twelfth of its peak and still be written at the default setting, while halving its length can remove it. Suspect articulation before you suspect recording level.

The invisible case

Repeated notes on the same pitch merge into one.

A note is extended, not restarted, while the next frame stays within one semitone of it. Play the same pitch twice with no silence between and nothing marks the boundary: two attacks become one long note, and the second reads as missing although it was detected throughout. I tested two 0.4 s notes on A3 with a varying silence between them — with no gap the output was one note at all three settings, with a 10 ms gap it was two at all three.

This is the one missing-note case you can fix in the source material without touching the tool: articulate the repeat and both notes appear. It is the opposite failure to the one on the wrong-notes page, where a sliding pitch opens a new note at every semitone crossing. Same rule, two directions: pitch movement splits, pitch stasis merges. The same gate also deletes notes that are long enough individually but keep being cut short by their neighbour — the trill page measures where that line is.

What actually helps

Four changes, in the order they pay off.

  • Move the slider to More notes first. It lowers both gates and was the only setting that kept the 50 ms note and the quietest one. Expect more spurious notes in exchange.
  • Separate repeated pitches. A sliver of silence between two notes of the same pitch kept them apart at every setting here.
  • Convert a longer section than you need. A four-note excerpt that loses one may fall under the three-note floor and export nothing; a longer passage has room to survive a drop, and you can cut the result afterwards.
  • Do not chase the last notes with editing. A note that never reached the output has no pitch or position to correct. Re-articulating the input is faster than drawing notes by ear.

If the material is percussive rather than pitched, length gating is the wrong frame — attacks are the event there, and the drum-to-MIDI workflow covers it. For what this detector resolves overall, see the measured accuracy boundaries.

FAQ

Missing-note questions

Why are some notes missing from my MIDI file?

Most often because of length. Each note must hold for 55, 75 or 110 ms — depending on the sensitivity setting — before it is written. A 30 ms note was dropped at every setting in our test; a 110 ms note survived all of them.

Why did the converter produce no file at all?

Fewer than three notes survived detection. The converter checks the count before writing and stops with a message asking for a longer, clearer melody, so a short phrase that loses one note can trip that check.

Does a quiet note get dropped the same way?

No, and it has much more room: with the note held at 150 ms it still appeared at a peak level of 0.04; only at 0.02 did the default setting drop it.

Two notes of the same pitch became one. Why?

Consecutive frames merge while the pitch stays within one semitone, so a repeat with no silence has no boundary to detect. A 10 ms gap was enough to separate them at all three settings.