What is beat quantization?
Beat quantization is the process of correcting a recording's timing by moving its beats onto an even tempo grid at a fixed BPM. For audio, that means detecting where the beats fall, then time-warping the waveform so each one lands exactly on the grid, normally while preserving pitch.
MIDI quantization vs. audio quantization
The word "quantize" covers two very different jobs:
| MIDI quantization | Audio quantization | |
|---|---|---|
| What moves | Note events (data) | The waveform itself |
| Difficulty | Trivial (shift timestamps) | Hard (needs beat detection and time-stretching) |
| Sound quality risk | None | Depends on the time-stretch algorithm |
| Where you do it | Any DAW/sequencer | DAW warp tools, or free in the browser with Beat Quantizer |
MIDI quantizing has existed since 1980s drum machines. Audio quantizing only became practical once computers could run beat detection and high-quality time-stretching, and as of the mid-2020s it runs comfortably inside a browser tab.
How audio quantization works (3 stages)
- Onset detection. The audio is analyzed with a short-time Fourier transform, and frames where spectral energy jumps (spectral flux) mark candidate beat locations: drum hits, plucks, note attacks.
- Beat tracking. A dynamic-programming tracker (the classic Ellis algorithm used by the librosa research library) chooses the sequence of onsets that best fits a consistent tempo, yielding the BPM and the position of every beat.
- Time-warping. A phase vocoder stretches or compresses the audio between beats so each beat lands exactly on the target grid. Because the phase vocoder manipulates timing in the frequency domain, pitch is unchanged. Phase-locking and transient preservation keep the result clean and the drum hits sharp.
When to quantize (and when not to)
- Quantize: sample flips and chops that must sit on your project grid; DJ edits that need a stable BPM; layering live loops under programmed drums; cleaning up drifting vinyl/tape rips; remix stems.
- Don't quantize: expressive performances where rubato is the point, jazz or soul pockets whose swing you want intact, anything where "human" is the sound. Groove lives in small timing deviations, and flattening them all can flatten the feel.
- Middle path: quantize to the track's own detected tempo. Drift and sloppiness go; the tempo choice and overall character stay.
Common questions
What is beat quantization in one sentence?
Correcting timing by moving a recording's beats onto an even BPM grid. For audio that means detecting the beats, then time-warping the waveform so each one lands exactly on grid.
Does it change pitch?
Not with a pitch-preserving method. A phase vocoder stretches time independently of pitch. Naive resampling changes both together, which is the "chipmunk" effect quantizers avoid.
Is audio quantization the same as time-stretching?
Time-stretching is the engine; quantization is the application. A quantizer applies many small, time-varying stretches so specific beats land on specific grid positions, rather than one uniform stretch.
Can I try it without installing anything?
Yes. Beat Quantizer runs the full pipeline (detection, tracking, warping, WAV export) in your browser, free, with nothing uploaded.
Hear it, don't read it
Drop a track in and A/B the original against the quantized version.
Launch Beat Quantizer