Digital processing (DSP)
What a DSP does: delays, IIR and FIR filters, linear phase, FFT and its resolution, latency in samples and milliseconds.
15-minute lesson · Digital audio. In the app it ends with a three-level quiz and comes with the matching calculators.
A digital signal processor (DSP) does one thing, very fast: multiply-and-add on samples. EQ, crossover, delay, compressor, spectrum analyser — all boil down to that. At 48 kHz it gets 20.8 µs to compute each sample of each channel. Knowing how it computes explains delays, filter phase, your desk’s latency and Smaart’s resolution.
Delays and latency
Delaying signal is a DSP’s easiest trick: file samples in memory, release them N samples later. The base tool of speaker alignment (see Aligning a system). The same maths gives any buffer’s latency.
Delay (s) = N / fs 48 kHz: 1 ms = 48 samples 1 sample = 20.8 µs ≈ 7.1 mm at 343 m/s
A DSP rarely works sample by sample: it fills a buffer, crunches the block, then releases it. Total latency stacks ADC, input buffers, compute, output buffers and DAC. On a live digital desk that latency is fixed, whatever processing runs: ~1–3 ms analogue-in to analogue-out per model. Each digital box added to the chain (processor, monitor system, outboard FX) adds its own.
IIR filters
An IIR (infinite impulse response) filter is recursive: each output sample depends on previous inputs and outputs. A biquad, the building block, holds just 5 coefficients and makes a second-order filter (a bell, a shelf, a 12 dB/octave high-pass). It behaves like its analogue twin: barely any compute, no added latency, but frequency-dependent phase rotation. That’s minimum phase. It’s what lives in desk EQs and most Linkwitz-Riley and Butterworth crossovers (see Filters and EQ).
FIR filters
A FIR (finite impulse response) filter computes each output as a weighted sum of the last N input samples: a convolution. It can correct amplitude and phase independently. With symmetrical coefficients it’s linear-phase: every frequency delayed equally, waveform preserved. The price: latency near half its length, plus pre-ringing ahead of transients. Fine action down low needs a long filter — hence heavy latency.
Linear-phase FIR: delay = (N − 1) / 2 samples resolution ≈ fs / N 1024 taps at 48 kHz → ≈ 10.7 ms
| IIR | FIR | |
|---|---|---|
| Compute | Very light (a few coefficients) | Heavy (hundreds to thousands of taps) |
| Latency | Near zero | Half the length in linear phase |
| Phase | Minimum, analogue-style | Free: linear or corrected at will |
| Uses | Desk EQ, classic crossovers | Maker speaker presets, phase correction, linear-phase EQ |
FFT: seeing the spectrum
The fast Fourier transform (FFT) slices an N-sample block into N/2 evenly spaced frequency bins. It powers Smaart, REW and every analyser. Two quantities follow from N: analysed block length and bin spacing. Two faces of one coin: fine low-end detail needs a long block; but a long block smears everything that happened inside it and reacts slowly.
Bin spacing = fs / N Window length = N / fs 48 kHz, N = 4096 → 11.7 Hz and 85 ms
Before computing, each block is multiplied by a window (Hann, Blackman-Harris…) softening its edges. Without it, the block’s brutal cut smears a pure tone across neighbouring bins (spectral leakage). Each window trades peak sharpness against surrounding cleanliness. Since useful resolution varies with frequency, measurement analysers combine FFT sizes: Smaart offers multi-time windows, long down low and short up top (see Measuring with Smaart or REW).
Internal precision
DSPs compute with more bits than converters, keeping stacked rounding below noise. In fixed point, accumulators run wider than data (say 24-bit data, 48-bit+ sums); in floating point (32- or 64-bit), internal headroom is enormous. But the output returns to fixed point: a DAW master bus at +6 dBFS sounds clean, then clips the converter.
Practise with
Sources
- The Scientist and Engineer’s Guide to Digital Signal Processing — Steven W. Smith (Analog Devices)
- Spectral Audio Signal Processing — Julius O. Smith III (CCRMA, Stanford)
- Introduction to Digital Filters with Audio Applications — Julius O. Smith III
- On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform (Proceedings of the IEEE, 1978) — Fredric J. Harris
Continue
← Digital links and clocking · Measuring levels: peak, VU, loudness →