Saturation is described with words such as warmth, glue and analogue character. Underneath the vocabulary is a simple operation: the signal is passed through a curve that is not a straight line. Everything a saturator adds, wanted or unwanted, follows from the shape of that curve, the level of the signal going into it and the sample rate at which it runs.
A waveshaper is a transfer curve
The simplest model of a saturator is a memoryless waveshaper: a function that maps each input sample to an output sample without reference to any other sample. A straight line through the origin is a gain change. Any bend in the line makes the output depend on level in a nonlinear way, and a nonlinear function of a sine wave is no longer a single sine wave. The bent waveform contains the original frequency plus new components at whole-number multiples of it: harmonics.
Three properties of the curve decide the result:
- Symmetry decides which harmonic orders can appear.
- Sharpness decides how quickly the harmonics fall away with order. A smooth curve such as a hyperbolic tangent produces harmonics that decline rapidly. A hard clip has corners, so its harmonics fall away slowly and extend far up the spectrum.
- Drive, the level of the signal relative to the bend, decides how much of everything is produced. A saturator is a level-dependent device, which is why input level matters more here than anywhere else in a chain.
Symmetry and harmonic order
A curve is odd-symmetric when f(−x) = −f(x): the negative half of the wave is treated as the mirror image of the positive half. Driven by a sine wave that is centred on zero, such a curve can produce only odd harmonics (3rd, 5th, 7th and so on). Even harmonics require asymmetry, which can come from the curve itself or from a DC offset or bias that moves the signal off-centre before an otherwise symmetric curve.
Reproducible synthetic demonstration
The same tanh curve, centred and biased
A 1 kHz sine wave of full-scale amplitude was passed through y = tanh(2x), and through the same curve with an input bias of 0.3, y = tanh(2(x + 0.3)), at 48 kHz. Harmonic levels are relative to the 1 kHz component of each output.
| Component | tanh(2x), odd-symmetric | Biased, asymmetric |
|---|---|---|
| 2nd harmonic, 2 kHz | absent | −13.4 dBc |
| 3rd harmonic, 3 kHz | −15.5 dBc | −18.8 dBc |
| 4th harmonic, 4 kHz | absent | −23.0 dBc |
| 5th harmonic, 5 kHz | −28.3 dBc | −40.7 dBc |
| 7th harmonic, 7 kHz | −40.9 dBc | not computed |
| DC offset in the output | none | 0.217 of full scale |
What this shows: harmonic parity follows from symmetry, for one curve, one drive setting and one tone. “Absent” means below the numerical noise of the calculation. The asymmetric case also produces a DC offset, which real saturators remove with a high-pass filter. Levels are a calculation, not a description of how the result is perceived.
This is the accurate version of a popular simplification. The claim that valves produce even harmonics and tape produces odd ones attaches the behaviour to the wrong thing. A single-ended valve stage is asymmetric and so generates even harmonics; a push-pull valve stage is largely symmetric and cancels them. Tape saturation is close to symmetric. The labels on a plugin say little; the symmetry of the transfer characteristic, and where the signal sits on it, say everything. Real circuits also have memory, meaning their behaviour depends on frequency and on the recent past, which a static curve does not capture.
Two tones: intermodulation
The statement about odd and even harmonics applies to a single sine wave. Music is never that. When two or more frequencies pass through a nonlinearity together, the output also contains sums and differences of their multiples. These intermodulation products are generally not harmonically related to either note, which is why heavy saturation on a chord sounds rougher than the same saturation on a single note.
Reproducible synthetic demonstration
Two tones, 1,000 Hz and 1,100 Hz, through the same two curves
Two sine waves of half-scale amplitude each were added and passed through the centred and the biased tanh curves. Levels are relative to the 1,000 Hz component of the output.
| Product | Frequency | Odd-symmetric curve | Asymmetric curve |
|---|---|---|---|
| Difference tone, f₂ − f₁ (second order) | 100 Hz | below −120 dBc | −11.4 dBc |
| Sum tone, f₁ + f₂ (second order) | 2,100 Hz | below −120 dBc | −11.4 dBc |
| Third-order, 2f₁ − f₂ and 2f₂ − f₁ | 900 and 1,200 Hz | −17.4 dBc | −21.5 dBc |
| Fifth-order, 3f₁ − 2f₂ | 800 Hz | −31.7 dBc | −47.7 dBc |
The odd-symmetric curve produces no even-order products but strong odd-order ones, clustered close to the original tones. The asymmetric curve adds a difference tone at 100 Hz, more than three octaves below either input.
What this shows: intermodulation exists alongside harmonic distortion and follows the same symmetry rule by order. It is computed for two steady tones; dense material produces a product for every pair of components.
Aliasing: harmonics that cannot be represented
In a digital system, frequencies above half the sample rate cannot exist. A waveshaper does not know this. It generates harmonics according to its curve, and any that would fall above half the sample rate are folded back, or aliased, to a lower frequency. An aliased component generally bears no harmonic relation to the note that caused it, and it moves in the opposite direction when the note changes pitch.
Reproducible synthetic demonstration
A 5 kHz tone into a hard clipper, with and without oversampling
A 5 kHz sine was driven 6 dB into a hard clipper at a 48 kHz sample rate. Its odd harmonics lie at 15, 25, 35 kHz and so on; only the first is below 24 kHz. The 25 kHz harmonic folds to 23 kHz, 35 kHz to 13 kHz, 45 kHz to 3 kHz, and so on. The test was repeated with the clipper running at 4 and 8 times the sample rate, using a Kaiser-windowed sinc filter for both up-sampling and down-sampling. The table gives the total level of all components other than the true harmonics, relative to the 5 kHz fundamental.
| Processing rate | Total aliased content | Strongest single alias |
|---|---|---|
| 48 kHz, no oversampling | −24.6 dBc | −26.6 dBc, at 23 kHz |
| 192 kHz (4×) | −53.8 dBc | −57.3 dBc |
| 384 kHz (8×) | −64.9 dBc | −68.7 dBc |
What this shows: a deliberately severe case, with a high input frequency and the sharpest possible nonlinearity. The improvement from oversampling depends on the resampling filters as much as on the factor; a different filter gives different numbers. Lower notes, gentler curves and less drive alias far less to begin with. It is a calculation, not a listening test.
What oversampling does, and what limits it
Oversampling raises the sample rate before the nonlinearity, so that harmonics have room above the audio band, then filters them out and returns to the original rate. Three things determine how well it works:
- How high the input goes. The harmonics of a 60 Hz bass note stay inside the band for hundreds of orders. The harmonics of a cymbal leave it immediately.
- How sharp the curve is. A hard clip generates harmonics that fall away slowly, so some remain above even an oversampled band limit and fold back. A smooth curve needs far less oversampling for the same result.
- How good the resampling filters are. The down-sampling filter has to remove everything above the original band limit. A short filter leaves residue; a long linear-phase filter adds latency; a minimum-phase filter avoids the latency and shifts phase near the top of the band instead.
It follows that no oversampling factor is universally required or universally sufficient. Mild saturation on a bass or a vocal may need none. Hard clipping of bright material can remain imperfect at 8×. Some designs reduce aliasing by other means, such as antiderivative anti-aliasing, which filters the nonlinearity analytically instead of raising the rate. Where a plugin offers the choice, the sensible test is to listen for inharmonic components on high, sustained notes while switching the setting.
Small-speaker translation
Small loudspeakers reproduce little of the lowest octaves. A sine-like sub-bass note is nearly inaudible on them. If the note has harmonics, those fall where the loudspeaker does work, and hearing tends to assign them the pitch of the missing fundamental. Saturation is the usual way to create those harmonics.
Reproducible synthetic demonstration
A 50 Hz tone through a stand-in for a small loudspeaker
A full-scale 50 Hz sine was passed through a fourth-order high-pass filter at 150 Hz, a crude stand-in for a small driver, with and without saturation by y = tanh(3(x + 0.2)) beforehand. Levels are relative to the original 50 Hz tone.
| Component after the high-pass filter | Clean tone | Saturated tone |
|---|---|---|
| 50 Hz | −38.2 dB | −36.8 dB |
| 100 Hz | absent | −28.0 dB |
| 150 Hz | absent | −15.7 dB |
| 200 Hz | absent | −19.3 dB |
| 250 Hz | absent | −25.4 dB |
The clean tone survives only as a remnant 38.2 dB down. The saturated tone delivers its strongest component at 150 Hz, more than 20 dB above what is left of the fundamental.
What this shows: saturation places energy where a band-limited system can reproduce it. The high-pass filter is not a model of any real loudspeaker, and the perception of pitch from harmonics is documented in the hearing literature, not demonstrated by this calculation.
Using saturation in a mix
- Set the input level deliberately. Because the effect depends on level, a few decibels of input change can move a saturator from inaudible to obvious. Trim before it, and compensate after it so that comparisons with the bypass are made at equal loudness.
- Use parallel blends for bass. Saturating a copy, high-passing it around 100 Hz and blending it under the clean signal adds harmonics without disturbing the fundamental.
- Filter around it. A low-pass filter before a saturator reduces the high-frequency content that would alias or intermodulate. A filter after it shapes what was added.
- Prefer single sources to dense buses. Intermodulation grows with the number of components, so the same curve is cleaner on a bass than on a full mix.
- Remember the peak reduction. Saturation lowers peaks relative to average level, which is part of why it reads as louder. That is a form of limiting, and it is not undone later.
What saturation does not do
It does not add detail that was missing from a recording, restore dynamics, or make a digital recording analogue. It adds new components that are mathematically derived from the signal. Whether those components help is a mix decision, to be made by comparison at matched level, one source at a time.
Primary technical references
- W3C, Web Audio API: WaveShaperNode. A standardised memoryless waveshaper with optional 2× and 4× oversampling.
- Julius O. Smith III, Physical Audio Signal Processing, CCRMA, Stanford University. Memoryless nonlinearities, the bandwidth expansion they cause and its relation to aliasing.
- J. D. Parker, V. Zavalishin and E. Le Bihan, “Reducing the Aliasing of Nonlinear Waveshaping Using Continuous-Time Convolution”, Proceedings of the 19th International Conference on Digital Audio Effects (DAFx-16), Brno, 2016. Antiderivative anti-aliasing.
- U. Zölzer (ed.), DAFX: Digital Audio Effects, 2nd edition, Wiley, 2011, chapter 4, “Nonlinear Processing”.
- E. Larsen and R. M. Aarts, Audio Bandwidth Extension: Application of Psychoacoustics, Signal Processing and Loudspeaker Design, Wiley, 2004. Low-frequency enhancement by harmonic generation for small loudspeakers.
- B. C. J. Moore, An Introduction to the Psychology of Hearing, 6th edition, Brill, 2012. Pitch of complex tones with a missing fundamental.