Quantize in music production: grid, strength, swing and groove
Quantize in a DAW moves the start of each note toward the nearest line of a rhythmic grid, such as every 16th note. Used at full strength it makes timing machine-perfect; used with partial strength, swing or a groove template, it tightens a performance while keeping its feel. This guide converts grid values into milliseconds, shows how strength and swing are calculated, and covers MIDI, audio and record-time quantize.
What quantize actually does
A recorded MIDI note has a start time, a length and a velocity. Human players land a few milliseconds early or late. Quantize compares each note's start with a grid you choose and moves it to the closest grid line, or part of the way there.
It is the same idea as quantization in signal processing: a continuous value, here time, is mapped onto a set of allowed values. A 1/16 quantize rounds time to the nearest of 16 positions per 4/4 bar. Rounding removes error, and it also removes small variations that were deliberate. For the general idea, see what is quantization.
Grid values and their length in milliseconds
The grid value is a note length: 1/4 (quarter notes), 1/8, 1/16, 1/32, plus triplet versions that divide a beat into three instead of two. Convert any grid to time with:
Triplets are two-thirds of the straight value (three in the time of two). Dotted values are 1.5 times the straight value.
Worked example: the 16th-note grid at 120 BPM
- One beat (quarter note) = 60,000 / 120 = 500 ms
- One 8th = 500 / 2 = 250 ms
- One 16th = 500 / 4 = 125 ms
- One 16th triplet = 125 × 2/3 ≈ 83.3 ms
So in one bar of 4/4 at 120 BPM, the 1/16 grid lines fall at 0, 125, 250, 375 ms and so on up to 1,875 ms. A note played at 262 ms is 12 ms late for the 250 ms line and moves there at 100% strength.
| Grid | 90 BPM | 120 BPM | 140 BPM |
|---|---|---|---|
| 1/4 | 666.7 ms | 500 ms | 428.6 ms |
| 1/8 | 333.3 ms | 250 ms | 214.3 ms |
| 1/8 triplet | 222.2 ms | 166.7 ms | 142.9 ms |
| 1/16 | 166.7 ms | 125 ms | 107.1 ms |
| 1/16 triplet | 111.1 ms | 83.3 ms | 71.4 ms |
| 1/32 | 83.3 ms | 62.5 ms | 53.6 ms |
Choosing the right grid
Pick the smallest note value the part actually uses. Quantizing a 16th-note hi-hat to 1/8 drags every in-between 16th onto the wrong line. Quantizing a quarter-note bass part to 1/32 gives every sloppy note a nearby line, so mistakes survive. Parts mixing straight and triplet figures are best quantized in sections.
One clear explainer a week
New tools, guides and formats across AI, signals, audio and physics. No spam; unsubscribe any time.
Quantize strength, range and note ends
Strength (also called amount or percentage) sets how far each note moves toward its target. In Logic Pro, 100% is full quantization and 0% leaves the note where it was recorded; Ableton Live's Amount works the same way.
Take the note at 262 ms from the example above. At 100% it moves to 250 ms. At 60% it moves 0.6 × 12 = 7.2 ms earlier, to 254.8 ms, so it is still 4.8 ms late. Every error shrinks by the same proportion, so the take tightens while its push and pull survive.
Some sequencers add a range or window setting. Logic's Q-Range, for instance, can leave notes that are already close to a grid line untouched and move only the ones further away. That fixes obvious mistakes and keeps the small, intentional deviations.
Quantizing note ends
Standard quantize moves only note starts. Ableton Live's Quantize tool can target starts, ends or both; quantizing ends snaps note-off times to the grid so that sustained chords release together. Use it where ragged releases are audible; leave it off for legato lines. Logic's Q-Flam goes the other way: it spreads notes that start together, turning a block chord into a fast strum or arpeggio.
Input or record quantize
Record quantize snaps MIDI as it is captured. In Ableton Live it is set from the Edit menu, and in Arrangement recording it is a separate undo step, so you can remove it and keep the take. Because it discards timing you might want later, many producers record unquantized and quantize afterwards.
Swing and groove templates
Swing: delaying every second subdivision
Swing keeps the downbeats in place and delays every second note of each pair. With 16th-note swing, the pairs are the two 16ths inside each 8th; with 8th-note swing, the two 8ths inside each beat. Roger Linn, who built swing into his drum machines, describes it as delaying alternate 16th notes, with the amount of delay setting how much the groove swings.
The most common convention, used on Linn and Akai MPC machines and in Logic Pro, expresses swing as the share of the pair given to the first note:
At 50% both notes are equal: straight timing, ratio 1:1. At 66.7% the first note gets two-thirds of the pair: ratio 2:1, exactly the triplet shuffle feel. At 75% the ratio is 3:1, a hard dotted-16th-plus-32nd figure.
Worked example: 16th-note swing at 120 BPM
Each 16th pair spans one 8th = 250 ms. The second 16th of the pair starts at S × 250 ms instead of 125 ms.
| Swing | Second 16th at | Delay vs straight | Long:short |
|---|---|---|---|
| 50% | 125.0 ms | 0 ms | 1:1 |
| 54% | 135.0 ms | +10.0 ms | 1.17:1 |
| 58% | 145.0 ms | +20.0 ms | 1.38:1 |
| 62% | 155.0 ms | +30.0 ms | 1.63:1 |
| 66.7% | 166.7 ms | +41.7 ms | 2:1 (triplet) |
| 75% | 187.5 ms | +62.5 ms | 3:1 |
So in a bar of swung 16ths at 58%, the notes fall at 0, 145, 250, 395, 500, 645 ms and so on. Every on-beat and 8th-note position stays put; only the in-between 16ths move. With 8th-note swing at the same tempo the pair is 500 ms, so 66.7% puts the off-beat 8th at 333.3 ms instead of 250 ms.
Small values matter: a 10 ms shift at 54% loosens a straight hi-hat without sounding like a shuffle. Linn notes that his LM-1, at 48 ticks per quarter note, offered 50, 54, 58, 60, 62, 66, 70 and 75%.
Groove templates and extracted grooves
Swing applies one fixed delay. A groove template stores a whole pattern of timing (and often velocity) offsets, so it can reproduce the feel of a specific drummer, drum machine or loop. You quantize to the groove instead of to a straight grid.
Ableton Live's Groove Pool shows the typical controls: a Base grid that the groove is measured against, a Quantize amount that straightens notes first, a Timing amount for how strongly the groove's offsets apply, Random for small random variations, and Velocity for how much the groove's accents carry over. You can extract a groove from any audio or MIDI clip, apply it to other clips, and commit it to move the notes for real. Logic Pro's advanced quantize parameters can similarly take note lengths and velocities from a template region.
Extracting a groove from a live drum take and applying it to programmed bass and keys makes them sit together, because every part shares the same micro-timing.
Quantizing audio
Audio has no note events, so the DAW must find them first. It analyses the waveform for transients, the sharp rises in level where hits begin, places markers on them, then time-stretches the audio between markers so each marker lands on the grid. The tools have different names but the same principle:
- Ableton Live: detected transients become warp markers; Quantize moves the nearest transient to the closest grid line, and its Amount setting moves warp markers a percentage of the way.
- Logic Pro: Flex Time detects transient markers and stretches the audio between flex markers.
- Pro Tools: Elastic Audio promotes event markers near the grid to warp markers, moves them, and applies time compression and expansion between them.
- Cubase: AudioWarp quantize places warp markers at hitpoints and can derive positions from a priority track across several tracks.
Keeping it human
- Use partial strength. Values between roughly 50% and 80% tighten a take without flattening it.
- Quantize selectively. Tight kick and snare with loose hi-hats and percussion often sounds more natural than a fully gridded kit.
- Quantize to a groove, not a grid, when other parts were played live.
- Keep velocity variation. Accents shape a groove as much as timing does; don't flatten velocities while fixing time.
- Add small, deliberate offsets. A part a few milliseconds behind the beat feels laid back; slightly ahead feels urgent.
Try it: MIDI quantize and swing lab
Play a loose drum loop, then quantize it with strength and swing and hear the difference in the browser.
Hear strength and swing on a test pattern in the music quantizer.
Key takeaways
- Quantize moves note starts toward a rhythmic grid; 1/n note length in ms = (60,000 / BPM) × 4 / n.
- At 120 BPM a 16th is 125 ms, an 8th 250 ms and a 16th triplet about 83.3 ms.
- Strength moves notes a percentage of the way: new = played + strength × (grid − played).
- In the common convention, swing 50% is straight, 66.7% is a 2:1 triplet feel and 75% is 3:1; at 120 BPM, 58% swing delays every second 16th by 20 ms.
- Groove templates copy a real performance's timing and accents onto other parts.
- Audio quantize relies on transient detection and time-stretching; keep multitrack drums phase-locked.
Frequently asked questions
What quantize value should I use for drums?
Use the smallest note value actually played. Most pop and dance drum parts need 1/16; shuffle and many hip-hop parts need 1/16 with swing or a 16th-triplet grid; fills may need 1/32 or triplets in sections.
Why does my quantized part sound robotic?
Every note now sits exactly on the grid and the natural spread is gone. Lower the strength, add a little swing, quantize to an extracted groove, or quantize only the instruments that need it.
Is 66% swing the same as triplets?
Very nearly. Exact triplet swing is 66.7%, a 2:1 ratio. Machines that list 66% are rounding, or limited by their tick resolution. On a 0–100% swing scale, triplet feel is 100%.
Does quantizing audio reduce quality?
Moving markers requires time-stretching, which can create artifacts on sustained or complex material, especially for large moves. Small corrections on percussive tracks are usually clean; slicing and moving clips avoids stretching entirely.
Sources and further reading
- Ableton Live manual: Using Grooves — Groove Pool parameters, extracting and committing grooves
- Ableton Live manual: Editing MIDI — Quantize tool, amount, starts and ends
- Ableton Live manual: Audio Clips, Tempo and Warping — transients, warp markers and audio quantize
- Ableton Live manual: Recording New Clips — record quantization behaviour
- Logic Pro user guide: MIDI region parameters — Q-Swing, Q-Strength, Q-Range, Q-Flam definitions
- Avid Pro Tools help: Quantizing Elastic Audio — event and warp markers, time compression and expansion
- Steinberg help: AudioWarp quantizing multiple audio tracks — hitpoints and priority tracks
- Attack Magazine: Roger Linn on swing and groove — how swing delays alternate 16ths; LM-1 settings
- Attack Magazine: Swing in DAWs and drum machines — comparison of 50%-based and 0%-based swing scales