What is quantization in music?

What is quantization?

Recording & Production

The process of mapping values or events to discrete steps. In music sequencing, quantization commonly moves note timings toward a rhythmic grid, while in digital audio it assigns sampled amplitudes to available numerical levels.

What does quantization mean?

Quantization maps a value or event to one of a set of discrete choices. In music production, the word has two important applications: adjusting event timing to a rhythmic framework and representing sampled amplitudes with numerical levels. They share the idea of discrete steps but act on different properties.

Timing quantization moves note starts, ends or audio events toward selected grid positions. The grid can use straight divisions, tuplets or a groove pattern. Full-strength quantization places selected events on their targets; partial strength moves them only partway. The chosen grid and target rules matter: quantizing a triplet phrase to an unsuitable straight grid can change its intended rhythm.

An Ideal Uniform Rounding Quantizer

Q(x)=Δ round⁡ ⁣(xΔ),∣Q(x)−x∣≤Δ2Q(x)=\Delta\,\operatorname{round}\!\left(\frac{x}{\Delta}\right),\qquad |Q(x)-x|\leq\frac{\Delta}{2}

For ideal nearest-level scalar quantization, x is a real input value, Δ > 0 is the constant spacing between representable levels in the same units, and Q(x) rounds x/Δ to an integer and multiplies it by Δ. The absolute error satisfies |Q(x) − x| ≤ Δ/2, with equality possible at exact midpoints; a tie-breaking convention must be chosen for those cases. Example: with Δ = 0.01 and x = 0.234, Q(x) = 0.23, so Q(x) − x = −0.004, within the 0.005 bound. This assumes an unbounded uniform level grid or operation inside the non-overload range of a finite converter. Saturation, nonlinear quantizers and intentionally added dither require their own models. Timing-grid quantization uses an analogous rounding operation but a different time unit.

Amplitude Quantization

Digital audio assigns each sampled amplitude to an available numerical code. The difference between the input value and its represented value is quantization error. For fixed-point audio, bit depth determines the number of available codes, whereas sample rate determines how often samples occur. Suitable dither can decorrelate quantization error from the signal, replacing signal-dependent distortion with a noise-like error at the cost of added noise.

Examples related to quantization

Common confusions and distinctions

Timing quantization does not inherently reduce audio bit depth. Sampling in time and quantizing amplitude are different operations. Quantization also need not remove all expressive timing: strength, selected events and groove targets can preserve or introduce deliberate offsets.

Back to the glossary