MP3 to MIDI: can playback overlap when the notes do not?
Yes. Playback tails can overlap even when the MIDI notes have gaps. We rendered one newly transcribed six-note MIDI with two release settings. Its five note-to-note gaps are 209.375–243.750 ms. A 20 ms playback release leaves them separated; a 300 ms release extends across all five next note-ons. Check the event endings and the playback envelope separately before shortening your converted notes.
Convert your MP3 · Download the unchanged MIDI
Execution disclosure: today's fresh transcription ran in our command-line adapter of the production worker operations. This was not a successful online browser conversion: the desktop was inaccessible. The adapter uses FFmpeg resampling instead of WebAudio; its result must not be presented as a browser benchmark. Current Google top-ten ranking and the 30% information-difference audit remain unverified.
The useful distinction: event overlap versus playback overlap
A connected playback sound does not by itself show overlapping MIDI notes. In this example the identical six-note MIDI has five positive event gaps, 209.375–243.750 ms, yet the same events rendered with a 300 ms linear release have five overlapping envelope tails of 56.250–90.625 ms. With a 20 ms release, none of those five tails reaches the next note-on. Inspect event endings and playback envelopes separately before shortening notes: the first gap is (713−502)/960 = 219.791667 ms, while the long release extends 80.208333 ms beyond the next start. These numbers describe our declared renderer, not an error measured in a DAW or proof of perceived audibility. A general instruction to change instruments does not make this distinction or establish which layer needs correction.
Listen to the same events through two envelopes
These two files use the same MIDI, sine oscillator, normalized velocities, 5 ms attack and gain coefficient 0.12. Only the linear release after each note ending changes. Neither file is the input MP3 or a recording of an external synthesizer.
20 ms release
300 ms release
Use these as controlled playback examples. We did not conduct a listening panel, measure perceptual masking or establish a threshold at which a gap becomes audible. Phase cancellation, playback volume and the listening device can affect what you hear. The overlap calculations below concern the support of the declared per-note envelope.
The source and the fresh transcription
On 19 November 2026, Beijing time, we generated a new four-second mono MP3, 65,244 bytes. It contains six C4 attacks at 0.300, 0.750, 1.200, 1.650, 2.100 and 2.550 seconds. Each authored tone lasts 0.180 seconds; the envelope is min(1,x/0.003,(0.18−x)/0.02) × exp(−7x). The signal uses phase-linked harmonic weights 1, 0.4 and 0.2 with coefficient 0.28. The input was 44,100-Hz 16-bit mono WAV encoded with libmp3lame at 128 kbit/s.
One new command-line execution used Basic Pitch 1.0.1, TensorFlow.js WASM 3.21.0 and the production worker's Fill-kernel dtype compatibility patch. FFmpeg decoded/resampled to 22,050-Hz mono float32. The model files were fetched successfully from the official package CDN. The unchanged note-extraction settings were onsetThreshold 0.5, frameThreshold 0.3 and minNoteFrames 11. There was no parameter sweep and no old conversion output was reused.
The export is 130 bytes, six notes at pitch 60, 480 PPQ and a fixed 120-BPM tempo. Its raw file has two MTrk chunks and one note-bearing track. This fresh CLI result is independently parsed below, but browser-equivalence has not been tested.
| Event | Pitch | Start tick | Length ticks | End tick |
|---|---|---|---|---|
| 1 | 60 | 279 | 223 | 502 |
| 2 | 60 | 713 | 223 | 936 |
| 3 | 60 | 1148 | 212 | 1360 |
| 4 | 60 | 1594 | 212 | 1806 |
| 5 | 60 | 2007 | 212 | 2219 |
| 6 | 60 | 2442 | 212 | 2654 |
Calculate the five gaps and tails
At 480 PPQ and 120 BPM, one tick is (60/120)/480 = 1/960 second. For successive events A and B, the MIDI gap is B.start − A.end. In our renderer the preceding envelope extends until A.end + release, so overlap with the next note-on is max(0, release − gap). This is a definition of this renderer's support interval, not a claim about every instrument's release behavior.
| Pair | Gap ticks | Gap ms | 20 ms overlap | 300 ms overlap |
|---|---|---|---|---|
| 1 → 2 | 211 | 219.791667 | 0 | 80.208333 |
| 2 → 3 | 212 | 220.833333 | 0 | 79.166667 |
| 3 → 4 | 234 | 243.750000 | 0 | 56.250000 |
| 4 → 5 | 201 | 209.375000 | 0 | 90.625000 |
| 5 → 6 | 223 | 232.291667 | 0 | 67.708333 |
For events one and two, the first ends at tick 279+223=502 and the next begins at tick 713. The gap is 211/960=0.219791667 s. A 300 ms release therefore extends 0.300−211/960=0.080208333 s past the next onset. A 20 ms release instead ends 211/960−0.020=0.199791667 s before it. The MIDI event list is identical for both renderings.
Which layer should you inspect?
- If the MIDI events themselves overlap, compare the transcription with the source attacks and endings before editing.
- If the events have gaps but the chosen sound connects them, try a dry short-release playback as a diagnostic. This does not prove the transcription was correct; it isolates the playback layer.
- Keep the original export and change one layer at a time. Shortening all notes to compensate for one patch's tail changes the musical data and may leave unwanted gaps when you switch patches.
Public guidance and the unverified difference
Jukeblocks describes editable pitch/timing data and instrument changes; Songscription describes carrying note timing into a DAW; AI-MIDI discusses duration, dynamics and sustain; CraftMusic describes changing instruments and correcting note lengths. These are shared public concepts, not our exclusive claims. This page adds a worked event-gap versus playback-tail diagnosis with a constant-MIDI A/B rendering. However, the current Google top ten could not be opened in a browser today. These four directly read pages are not a substitute for today's ranked ten, and no claim that 30% has passed that comparison is made.
Files and reproduction
- New input MP3 · authored WAV · source specification · input generator.
- Actual fresh CLI MIDI · original CLI report · independent notes, gaps and render hashes.
- CLI transcription adapter · independent verifier and renderer.
The MIDI SHA256 is 4c2cc9fb28132ce280e638b116978b8ad6cf465b85456dcceb6554dfdb39bf92. Both WAV renderings reference that exact hash; each WAV is 352,844 bytes, 44,100-Hz mono 16-bit PCM and four seconds long. Hashes establish file identity, not originality or musical correctness.
From the project root, run the supplied generator with the FFmpeg executable path, then the CLI adapter with the same argument, then node render-playback-tail.mjs. The adapter expects the project dependencies Basic Pitch 1.0.1, TensorFlow.js and its WASM backend 3.21.0, and @tonejs/midi 2.0.28. The renderer independently checks the fresh report against all six raw event timings before producing either audio file. This educational renderer is not a DAW, SoundFont or commercial-patch benchmark.
See the declared playback comparison
Original measured graphics with AI-synthesized English narration. This summarizes the same CLI result and renderer; it is not a browser run or an independent originality check.
Does a long playback tail mean my MIDI note is too long?
Not necessarily. The six-note example has positive event gaps, but a 300 ms renderer release overlaps each following onset. Inspect both layers.
Did the two sound files use different MIDI notes?
No. Both use the same MIDI hash and all six unchanged events. Only the renderer's post-note release changes.
Was this measured in the online browser converter?
No. A fresh CLI adapter execution used the production worker's transcription operations and versions, with FFmpeg resampling. The browser run is still pending and equivalence is not assumed.