DSP Toolbox · Page 40

Oversampling — Move the Mirror

Our waveshaper created harmonics that crossed Nyquist and reflected back as aliases. Oversampling gives the nonlinear process a larger temporary frequency space — then an anti-alias filter removes what cannot safely return to the host sample rate.

The harmonics do not move. The internal Nyquist boundary does. Oversampling moves the mirror farther away.

1. Move the mirror

Oversampling
48.0 kHz
6.00 kHz
14
HarmonicsHost NyquistInternal NyquistPotential host-rate aliasesRemoved region
Host Nyquist24 kHz
Internal rate48 kHz
Internal Nyquist24 kHz
Transition band4.0 kHz
Samples / ch / sec48,000

2. But we have to come back down

Suppose the host is 48 kHz but the nonlinear stage runs at 4× = 192 kHz. Harmonics can exist internally up to 96 kHz — but the final 48 kHz signal still cannot contain anything above 24 kHz.

48 kHz
HOST
→
UPSAMPLE
→
NONLINEAR
FUNCTION
→
LOW-PASS
FILTER
→
DOWNSAMPLE
→
48 kHz
HOST
Oversampling gives us room. The filter makes the return journey safe.

3. How steep does the filter need to be?

A real low-pass filter cannot pass everything to 23,999 Hz and magically remove everything at 24,000 Hz. It needs a transition band.

20.0 kHz
Medium / Steep
Anti-alias filter
PASSBAND → TRANSITION → STOPBAND 0–20 kHz 20–24 kHz above 24 kHz
The smaller the transition band, the harder the filter has to work. Steeper rejection generally requires a more demanding filter design.

4. Try 44.1 kHz

Keep the passband near 20 kHz and move the host sample rate from 48 kHz towards 44.1 kHz. The available transition region squeezes:

48 kHz host: 20 → 24 kHz ≈ 4 kHz transition 44.1 kHz host: 20 → 22.05 kHz ≈ 2.05 kHz transition

That reconnects directly to our earlier filter work: sharper boundaries are not free.

The point

5. Oversampling is not a magic “quality” switch

UPSAMPLE → NONLINEAR PROCESS → FILTER → DOWNSAMPLE

It is particularly useful when processing creates new frequencies that could otherwise alias. More oversampling means more internal samples to process and more filtering work.

Page 38: create harmonics → Page 39: hit the mirror → Page 40: move the mirror, filter, and come safely back down.