Why does MIDI drift away from a fixed beat grid?
When the source slowed down in this two-clip test, the last MIDI note landed 575 ms after the fixed grid while staying within 15 ms of the recording.
Download both beat grid testsHow did the source slow down in the test?
Two eight-bar MP3s used the same sequence of 32 pitches, tone lengths, amplitude and 128 kbps encoding. Both began at 120 ms. Only the spacing between the notes changed. The control used 500 ms intervals throughout, while the second clip added 1.25 ms to each successive interval.
The reference grid was a fixed 120 BPM with beat one placed at 120 ms, the first source onset. That origin matters. A grid starting at 0 ms would give both clips an additional 120 ms offset unrelated to the gradual slowing we were measuring.
We calculated two signed errors on every beat. For the transcription, we subtracted the actual source note time from the MIDI note time. For the grid, we subtracted the expected 120 BPM beat time from the same MIDI note time. The CSV keeps both values side by side.
How far did the last note land from the grid?
The steady clip’s final beat was expected at 15,620 ms and its MIDI note landed at 15,614.583 ms, 5.417 ms early. All 32 pitches matched the source, and no MIDI note in that clip was more than 5.417 ms from its source onset.
The slowing clip’s final MIDI note landed at 16,195.031 ms, 575.031 ms late against the fixed grid. Its original note began at 16,201.247 ms. At the final note the MIDI was therefore about 6.2 ms early against the recording, even though it was over half a second late against the grid.
The first and last note are enough to see the shape of this specific error at its endpoints. In the slowing clip, the first MIDI note was 4.698 ms early against the grid, and the last was 575.031 ms late. Moving the whole clip to fix the first note would still leave about 580 ms of drift at the last.
Both MP3s produced 32 matching MIDI pitches on the same Noteline build in Windows Chrome. The largest timing miss against the source anywhere in the slowing clip was 14.188 ms. This test used synthesized notes with clear starts and one gradual slow-down.
How can I tell if my MIDI or my grid is drifting?
Pick an early attack, one near the middle and one near the end. At each point compare the raw MIDI with the original audio in seconds first, then with the beat grid. For the supplied clips, the CSV gives all 32 comparisons per file.
- Steady 120 BPM clip: MP3 · MIDI
- Gradually slowing clip: MP3 · MIDI
- Reference, MIDI and grid times for 64 notes
Should I change project tempo or edit the notes?
If the MIDI still follows the audio and you want to preserve the recorded performance, map the project tempo to the audio. If notes miss the original attacks, fix those events individually before applying whole-clip timing changes.
To see what quantizing would move, duplicate the MIDI track and leave the first copy untouched. Align the grid to the first attack before applying quantization to the second copy. Compare the copies against the original recording so you can hear changes the grid introduced.
A recording at a steady tempo can drift against a project set to a different BPM. Compare adjacent beat intervals in the audio. Consistent lengths point to a steady performance, and intervals that grow across the clip point to slowing.
Start a new test with the MP3 to MIDI converter, or use the MIDI accuracy checklist for pitch and timing checks.