PSOrvia

← Features

Distortion without aliasing

Hard saturation creates whistling tones in digital processing that were never in the signal. With antiderivative antialiasing (ADAA) or oversampling they stay away, measured and audible.

Framework DSPSoundQuality

Abstract graphic: two spectrograms of a gliding tone, crossing alias lines at the top, clearly fewer at the bottom

Hard limiting a signal digitally creates overtones far above half the sampling rate. They fold back down and show up as tones that belong to no overtone series: aliasing. In an upward glide you hear them as whistling that runs against the direction of the tone.

The three listening examples use the same hard curve with a preamp gain of 6, only the route differs (A naive, B with a remedy). Loudness is matched to -23 LUFS.

Glide with ADAA: a sine glides from 200 Hz to 10000 Hz in 8 s. In A the aliases run crisscross as whistles, in B they are clearly weaker.

Glide with oversampling: the same, B with 4 times oversampling. Here the whistling is quietest.

Chord: a high chord of E6, G#6 and B6 (1319 Hz, 1661 Hz, 1976 Hz) through the same curve, A naive, B with ADAA. The chord is so high that its overtones cross the sampling limit almost at once.

In numbers (aliasing measure: the power of everything that is neither DC nor a harmonic of the fundamental, against the fundamental, steady sine at -1 dBFS):

At 1000 Hz the aliasing is -36.9 dB naive, -43.1 dB with ADAA and -62.6 dB with 4 times oversampling. At 3000 Hz it is -21.7 dB, -28.2 dB and -50.6 dB. At 7000 Hz it is -13.2 dB, -25.3 dB and -38.3 dB.

So oversampling is stronger, but costs 4 times the computing for the whole stage. ADAA gains 6 to 12 dB here and computes without oversampling.

Listen

Before and after

Glide 200 Hz to 10 kHz, naive

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.

Glide, with ADAA

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.

Before and after

Glide, naive

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.

Glide, 4 times oversampled

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.

Before and after

High chord, naive

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.

High chord, with ADAA

0:00

Keyboard: Space plays or pauses, arrow keys jump 5 seconds, Home and End go to start and end.