If you have ever used a digital synth and felt that the top end was brittle, glassy or somehow “not quite in tune”, you were probably hearing aliasing. It is the best-known flaw of digital sound and also one of the most misunderstood. This post explains it without equations, and then shows what Reef does about it and how we check.
The wagon wheel
In old films, a wagon wheel on screen sometimes appears to turn backwards. The camera takes 24 pictures a second. When the wheel spins fast enough that between two pictures it moves nearly a full turn, your eye reads a small backwards movement.
Digital audio is the same. A recording or a synth output is a list of numbers, 48,000 a second. A frequency above half of that, 24,000 Hz, can’t be described: there are too few numbers per cycle. Instead of disappearing, it is misread as a lower frequency, mirrored around the 24 kHz line. A partial at 30 kHz appears at 18 kHz. A partial at 40 kHz appears at 8 kHz.
That 8 kHz tone is not a harmonic of anything you played. It is aliasing.

Why does the reflection happen at all?
It is arithmetic, not physics, and it belongs to the digital recording and not to the sound. A 30 kHz wave in the air is simply a 30 kHz wave: air has no sample rate. The trouble starts when the sound is stored as values taken at fixed instants. Between those instants nothing is recorded, so two different waves that happen to have the same values at every instant are, as far as the recording is concerned, the same wave.
That is exactly what happens to a frequency f and a frequency (sample rate - f). In the figure below, a slow wave at 0.2 times the sample rate and a fast wave at 0.8 times the sample rate pass through the very same dots. Given only the dots, nothing can say which was meant, and the playback system draws the slow one, the lowest-frequency wave that fits. So everything above half the sample rate is read as a mirror image below it. Keep going and it folds again at the sample rate, and again, which gives the folding ruler on the right.
The “half” comes from a simple count: to show a cycle at all you need at least two dots per cycle, one on the way up and one on the way down. At 48,000 samples a second, that is 24,000 cycles a second.

Is it a flaw of how we model sound? In a sense, yes: it is the cost of describing a continuous wave with a list of numbers. It is not a mistake in the maths, since the sampling theorem says it is lossless for anything below half the sample rate. The catch is that processes like saturation and folding are free to invent content above that limit, and the list of numbers cannot hold it. That new content is what has to be prevented, which is what the rest of this post is about.
Why it matters musically
Natural harmonics are in a fixed relationship to the note: 2x, 3x, 4x and so on. Alias components are not. They move the wrong way when the pitch moves, and they have odd spacings. The ear hears them as inharmonic: slightly out of tune, metallic, nervous.
They also make chords muddy. Two notes make two sets of harmonics and two sets of aliases, and the aliases form a dense cloud that fills the gaps between the harmonics.
Where it comes from
Anything that makes sharp edges or nonlinear changes can create harmonics well above where they are needed:
- Oscillators with edges. A plain digital saw has a sharp jump every cycle. Its harmonics never stop.
- Saturation and distortion. A curve that flattens peaks adds harmonics in proportion to the drive.
- Wavefolding. Folding produces more harmonics than almost any other process. This is why aliasing is a bigger problem for west-coast designs.
- Sample-rate and bit reduction make aliasing on purpose.
The standard remedies
- Band-limited edges. For oscillators, a technique called polyBLEP smooths just the edge, removing the above-Nyquist part of it. It is cheap and very effective.
- Oversampling. Run the nonlinear part at 2x or 4x the sample rate, so there is room for the new harmonics, then filter and decimate. The filter must be good: a poor one leaves images behind.
- Antiderivative antialiasing (ADAA). For static curves like saturation, replace the point lookup with an average over the step. Averaging rounds the sharp corners that make the high harmonics in the first place. It gives much of the benefit of oversampling for a fraction of the cost, as the Deluge saturation post describes.
What Reef does
Reef treats every place where aliasing can be born:
- polyBLEP on every sawtooth and square edge, in all three oscillator engines.
- The oscillator and folder run oversampled (2x by default, 4x available), and come back down through a halfband decimator that removes the image band before the rate drops.
- ADAA saturation in the Saturn family of effects.
- The low pass gate’s fast-attack, slow-release response rounds the onset the way the hardware does, which also takes the sharpest click off a hit.
Measuring it
It would be easy to write all this and just claim it works. We measure. Reef’s tests render notes and measure the strength of the strongest component that is not a harmonic of the note, in decibels below the main tone. Lower is cleaner.

| Test sound | 1x | 2x | 4x |
|---|---|---|---|
| Sine, C6 | -27 dB | -24 dB | -24 dB |
| Saw, C5 | -21 dB | -26 dB | -32 dB |
| Soft square, C5 | -16 dB | -32 dB | -32 dB |
Two things in this table are worth being honest about. First, the sine is the odd one out: it doesn’t get cleaner with oversampling, and reads slightly worse at 2x and 4x than at 1x. A clean sine has very little to alias, and the measurement reports the strongest component that isn’t a harmonic of the note, which for a sine need not be aliasing at all. We don’t count that row as a win for any setting. Second, the biggest gains are on bright sounds, which is where you would expect them.
You can hear what the setting does on a hard-folded saw at high notes.
One more detail that mattered
During development, a stage that works perfectly in double precision can misbehave in single precision. The ADAA formula divides by the difference between two consecutive samples, which can be tiny. Computed in single precision it spiked about seven times; computed in double precision it didn’t. The unit tests that found it are now part of the project’s checks. It’s a good example of why we render real signals and look, rather than trust a formula.
Should you turn it all the way up?
No. Aliasing isn’t always unwelcome: some people like the rough edge, and that is why 1x is still an option. The point is to have the choice. Reef’s default of 2x is clean enough for most patches, and 4x is for the brightest. For everything else, the next post explains the process that makes aliasing worst.