What is beat quantization?

By the Beat Quantizer team · Updated July 5, 2026

Definition

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 quantizationAudio quantization
What movesNote events (data)The waveform itself
DifficultyTrivial (shift timestamps)Hard (needs beat detection and time-stretching)
Sound quality riskNoneDepends on the time-stretch algorithm
Where you do itAny DAW/sequencerDAW 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)

  1. 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.
  2. 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.
  3. 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)

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