Back to HackerTubeYouTubeNovember 14, 2026Duration:23:52

Why Digital Audio Is Not a Staircase

D/A and A/D | Digital Show and Tell (Monty Montgomery @ xiph.org)

FSFL Studio

Full transcript

English
Watch on YouTube
Contents

A round trip puts the staircase to the test

Source 00:03

After an article arguing against 24-bit/192 kHz music downloads, Monty Montgomery received many questions about his claim that digital audio is not a staircase. He tests it with analog instruments: an HP 3325 generator, a Tektronix 2246 oscilloscope and an HP 3585 spectrum analyzer. Their measurement paths are analog, even though the instruments contain controllers. The generator produces a 1 kHz sine wave at 1 V RMS, about 2.8 V peak to peak. The analyzer also reveals low white noise and harmonics about 70 dB below the fundamental; Montgomery flags these imperfections before starting.

A consumer USB audio interface sends the signal to a ThinkPad for display, then returns the same digital signal to the interface for conversion back to analog. Newer converters can measure much better in flatness, linearity, jitter and noise, he says, but a measurable improvement is not necessarily audible.

At 16-bit, 44.1 kHz PCM—the CD format—the software draws a step for each sample, while the output scope shows a smooth 1 kHz sine. At 15 kHz there are fewer than three samples per cycle and the display looks ragged, yet the output remains a sine. He raises the frequency through 16, 17, 18, 19 and 20 kHz with the same observed result. This is a demonstration within the system's bandwidth, not a claim that every real converter is error-free. Watch the comparison.

The first image shows the 15 kHz sample display; the second shows the analog output later in the sweep, at 20 kHz.

View full image
View full image

Samples are points, and bandwidth makes reconstruction possible

Source 05:48

A staircase has a value at every instant. A sampled, discrete-time signal has values at its sample instants; it does not itself specify values between them. A lollipop plot shows those separate points without implying connecting steps.

For an ideal signal strictly band-limited below the Nyquist frequency—half the sampling rate—its regularly spaced samples uniquely determine the continuous waveform. A different curve through the same points must violate that band limit. Thus ideal sampling and reconstruction preserve a signal meeting the condition; this does not mean arbitrary high-frequency input survives sampling. In practice an anti-aliasing filter limits input bandwidth before sampling, preventing out-of-band content from folding into the sampled band. At 44.1 kHz, Nyquist is 22.05 kHz.

View full image

Why do staircase pictures persist? A zero-order hold actually extends each value to the next sample and can be an intermediate stage in a DAC; it is not the completed reconstructed output in the demonstration. Engineers also use steps as a convenient display, much as image editors show sample pixels as large squares.

Bit depth changes noise, not whether the output is smooth

Source 08:45

Montgomery compares the same sine with an 8-bit, dithered version. Both output curves are smooth, but the 8-bit version has a higher noise floor—the background level visible in a spectrum. Sampling selects times; quantization rounds each sample amplitude to a finite set of levels. Under the band-limited idealization sampling need not lose information, whereas quantization introduces error. Bit depth controls the available amplitude resolution and, in this dithered example, the noise level.

To hear it, he removes the sine with a notch filter and raises the gain on the remaining noise. He compares the hiss to tape noise, describing Gaussian dither as mathematically equivalent in that respect. His approximate tape comparisons are 5–6 bits for a typical cassette, up to 9 in ideal conditions, and around 13 for the best professional open-reel tape with advanced noise reduction. He connects this difference to the former prestige of DDD CDs, recorded, mixed and mastered digitally.

Dither trades correlated distortion for controlled noise

Source 11:42

Simple rounding can produce error that depends on the input, including harmonic distortion: extra spectral peaks related to the original tone. Dither is deliberately added noise chosen to change that error's behavior, rather than merely masking it. Montgomery generates a clean sine on the computer because the analog generator is too noisy for this test. At 8 bits, dither gives a clean tone peak and an even noise floor; turning it off lowers the floor but exposes larger harmonic peaks.

View full image

With undithered quantization, he observes roughly constant absolute distortion as the input falls; below half a quantization step the signal rounds to zero. Re-enabling dither reveals a tone at one-quarter of a step against the noise floor. The tone is recoverable statistically, not a promise that every instantaneous sample is accurate. At 16 bits, he says, even the undithered distortion is already inaudibly low in this example.

Noise shaping moves noise away from sensitive frequencies

Source 14:03

Dither need not have a flat spectrum. Noise shaping shifts more noise away from the roughly 2–4 kHz range where hearing is particularly sensitive, often toward high frequencies. Montgomery boosts the normally very quiet 16-bit example so the difference can be heard. In his near-silence comparison, the dithered quantization noise has greater total power than the undithered noise even when it sounds quieter; he says this can be seen on a VU meter.

View full image

Dither power is also adjustable. With full dither in his modulated-input demonstration, noise remains uniform; reducing it permits input-dependent noise and distortion to return. Shaped dither can tolerate somewhat less power before the input has a comparable effect. Montgomery puts this in perspective: the differences he discusses begin around 100 dB or more below full scale. He calls dither a little extra dynamic-range insurance, but considers its practical effect at 16 bits mostly marginal; he says a great master is not ruined simply by omitting it.

A band-limited square wave has ripples

Source 17:27

A sine isolates one frequency. A square wave combines a fundamental with an infinite series of odd harmonics. The experiment's sharp anti-aliasing filter cuts off just above 20 kHz, removing higher components before sampling. The reconstructed 1 kHz square wave therefore has rounded transitions and oscillatory ripples near its edges, called the Gibbs effect. A sharper cutoff generally means stronger ringing, but the details matter.

View full image

In this particular demonstration a second pass through the filter adds a small delay but no visible further change: the frequencies removed on the first pass are already gone. This does not establish that every physical filter is perfectly unchanged by repeated passes; its passband and phase response can matter. The important observation is that ringing need not accumulate as a new defect on each pass. A synthetic digital square wave can appear ripple-free when its sample points are joined as steps, while the band-limited waveform fitting those points still rings. Watch the square-wave experiment.

An edge can be represented between sample times

Source 20:46

The spacing of samples does not force the timing of a band-limited rising edge onto the nearest sample. Shifting the edge changes the values of surrounding samples, which together encode its position. Montgomery moves a band-limited square-wave edge between sample times and demonstrates its reconstruction. This applies to the band-limited waveform under the sampling assumptions, not to an unrestricted infinitely sharp impulse.

The demonstrations are a starting point

Source 21:57

Montgomery chose simple experiments with clear results and encourages viewers to change parameters, inspect the code and build alternatives. He points to source code at Xiph.org, Wikipedia for casual research, MIT OpenCourseWare signals-and-systems material for deeper study, and the Xiph.org community. His closing caution is that the video only scratches the surface.