Timing repair
How to fix MIDI timing
To fix MIDI timing without making a performance sound robotic, diagnose whether your note starts are rushing, dragging, or landing between beat subdivisions before you quantize. This guide walks through note-onset repair, choosing the right 1/8 or 1/16 quantize grid, cleaning note lengths, and restoring natural groove.

What matters most
- Diagnose whether note timing is randomly loose, uniformly offset, or drifting before snapping every note to a grid.
- Choose the smallest quantize grid (1/8 or 1/16) that fixes timing errors without erasing intentional swing or groove.
- Quantize note starts and ends together, then inspect the piano roll for clipped or overlapping note lengths.
- Use a bounded humanize pass after quantizing when strict grid alignment feels stiff.
Diagnose MIDI timing errors before you quantize
Open the file in the piano roll and loop two to four bars against a click. Are individual notes randomly rushing and dragging around the beat, shifted late by a fixed latency offset, or drifting steadily out of sync? Random looseness comes from live keyboard playing or AI transcription noise, fixed lateness points to recording latency, and steady drift usually signals a playback BPM mismatch.
Check the file PPQ resolution and playback BPM briefly so you know your grid math before moving notes. Once you confirm the beat grid lines up with the phrase, focus your timing repair directly on the note starts and lengths that actually sound off-pocket.
Choose a grid that matches the music
A quarter-note grid is for simple material, an eighth-note grid for common pop and rock phrasing, and a sixteenth-note grid for faster rhythmic detail. A thirty-second-note grid is rarely necessary unless the part contains fast ornaments or programming.
Do not choose a grid because it is the smallest available. A sixteenth-note grid applied to a swing phrase can erase the swing, and a quarter-note grid applied to a trap hi-hat pattern will destroy the rhythm. Match the grid to the intended subdivision, not to the density of the notes.
Quantize starts and ends together
EditMIDI quantizes both note starts and note ends. If the end rounding would collapse a note to zero length, the editor keeps it at least one tick long. That prevents invalid notes, but it does not guarantee a musical articulation; check the piano roll after the pass.
If the part has a deliberate legato or staccato shape, fix the note lengths after quantizing. A quantize pass can make every note end on the grid, which may be too short or too long for the phrase. The note-length tool can restore a percentage, legato, or staccato feel.
Restore feel with controlled variation
A strict grid can sound mechanical even when the notes are correct. A small humanize pass adds bounded timing and velocity variation without changing note lengths. Keep the timing range small, compare a short loop, and use the same seed if you want to reproduce the result.
Humanize is not a substitute for a good performance. If the source timing is already expressive, quantizing and humanizing it again can make it worse. Use the smallest intervention that solves the actual problem.
Check note length and groove after fixing MIDI timing
After quantizing, play the phrase against a metronome and against the original. Listen for notes that now start on the grid but end too early, and for chords that lost their slight spread. A MIDI timing fix should make the phrase tighter and clearer, not merely align the rectangles visually.
If the whole file still drifts out of pocket across later bars, verify the BPM header matches the source recording before running another quantize pass. Splitting a rubato passage into shorter sections often fixes stubborn timing drift faster than tightening the grid.
When not to quantize MIDI timing
Do not quantize a live performance that is intentionally expressive, a rubato piano part, or a MIDI capture of a human groove unless the goal is a deliberate mechanical effect. Quantize is a tool for alignment, not a universal quality setting.
If the file is a generated or converted MIDI with wrong notes, fix those notes first. Quantizing a wrong note only makes it wrong on time. Inspect the piano roll, repair the pitch and duration, then decide whether the timing needs another pass.
A fix-MIDI-timing checklist for AI and generated MIDI
Generated and audio-transcribed MIDI files mix real rhythmic timing with short pitch-estimation blips. Start by deleting stray 1/64th-note ghost hits, then inspect which bars actually rush or drag. If only one instrument track drifts, fix that track inside the editor instead of over-quantizing the whole song.
After the timing pass, check note lengths, duplicate notes, and the final two bars. A file can look aligned and still have a clipped ending or a chord that rings too long. Listen to the transition into the next section, because that is where a small timing error becomes obvious.
- Delete stray ghost micro-notes before running a global quantize pass.
- Fix one drifting lane before changing the whole file.
- Check the final bar and the transition into the next section.
Read the tick math before you choose a grid
A 480 PPQ file stores 480 ticks per quarter note. At 120 BPM one quarter note lasts 500 ms, so a tick is about 1.04 ms; at 960 PPQ the same quarter note is 960 ticks and a tick is about 0.52 ms. This is why the same visible offset can mean different musical errors in two files.
Grids are derived from PPQ, not from tempo. A sixteenth grid is PPQ divided by four, so 120 ticks at 480 PPQ and 240 at 960. Tempo events store microseconds per quarter note: 120 BPM is 500,000, and the player converts ticks to seconds through that map, so a wrong tempo scales the whole timeline without moving a single note. Swing phrases place offbeats between straight grid points; quantizing them to the straight grid removes the ratio that made them swing.
Quantize strength matters as much as grid size. Full snapping moves every note to the nearest line; partial strength keeps a percentage of the original offset and preserves more feel. EditMIDI applies full snapping per grid, so use a smaller grid or humanize when you need to retain micro-timing.
Keep the unquantized file until the destination has accepted the result; quantization is reversible in the editor only while that session is open.
What to do after the pass
Save the corrected MIDI as a new file and compare it with the original in the same session. If the new version is better, keep both for a day before deleting anything. If it is worse, undo or reopen the original and try a smaller change.
A timing fix is successful when the phrase is easier to follow and still feels like the same performance. If the notes are aligned but the life is gone, the grid was too aggressive. Step back to a smaller intervention, or leave the original timing alone.
Questions and answers
Why does quantizing make my MIDI sound worse?
The grid may be too coarse or too fine for the phrase, or the performance may rely on intentional timing variation. Try a smaller rhythmic subdivision, check note lengths after the pass, and use humanize sparingly if the result feels stiff.
Does quantize change tempo?
No. Quantize moves note starts and ends to grid positions. Tempo is controlled by tempo events. If the file has a tempo problem, use the tempo tool or fix the tempo map instead of quantizing again.
Can I quantize only one track?
The focused quantizer applies one grid to the whole file. For track-specific work, open the full editor, select the notes you want, and edit them there. Keep the original file so you can compare the result.
Why did my note lengths change?
Quantize rounds both note starts and ends. If an end rounds onto its start, EditMIDI keeps the note at least one tick long. Review the piano roll and use the note-length tool if the articulation needs adjustment.
Was this comparison helpful?