Wavefolding 101

A wavefolder is one of the strangest and most musical devices in synthesis. It is a few components or a few lines of code, and it can turn a plain sine into a sound as complicated as a bell, an organ or a choir. This post explains how it works, how it differs from distortion, and what to listen for.

Three ways to deal with a loud signal

Imagine a sine wave and a limit on how loud it is allowed to be. A clipper chops off the peaks: anything above the limit stays at the limit. It makes a sharp corner and produces plenty of harmonics, which sound harsh. A saturator rounds the peaks off smoothly, so the signal gets squashed gently. It makes harmonics too, but fewer and warmer.

A folder does something quite different. When the signal reaches the limit it doesn’t stop. It turns around and comes back. Push it a little further and the wave goes up, folds, comes down, folds again. The more signal, the more folds.

Transfer curves for a clipper, a saturator and a folder
Input on the horizontal axis, output on the vertical. The clipper (red) goes flat. The saturator (amber) curves to flat. The folder (teal) keeps turning.

What folding does to a sound

Start with a sine at 220 Hz. Fed through a folder with a little drive, the wave is slightly flattened on top and bottom. The spectrum gets a few odd harmonics. Increase the drive and the wave begins to dent in the middle of each peak. The spectrum gets richer, and notably the strength of each harmonic goes up and down as you turn the knob, because the folded wave keeps changing shape.

A sine folded by increasing amounts, with waveforms and spectra
Five drive settings, waveform on top and spectrum below. The harmonics fill in and the pattern keeps changing.

That movement is the point. A filter takes harmonics away; a folder makes them, and does so in a pattern that moves with the drive. If you modulate the drive with an envelope, the sound opens and closes in a way that a filter can’t match.

Listen. Fold swept from 0 to 90 over eight seconds on a saw wave: one knob, no filter.

Why the west coast

In the 1960s Don Buchla built modular synthesizers that deliberately avoided the keyboard and the subtractive model of a rich wave followed by a filter. His idea was to start with simple tones and complicate them, with folding and modulation. The Buchla 259 combined an oscillator with a timbre generator that does exactly this. On the other side of the country, Moog’s East-coast approach was a rich saw wave and a filter. So the names stuck: east coast subtracts, west coast adds.

Serge Tcherepnin’s modular synthesizers took the idea further, with the wave multiplier, and many Eurorack modules today follow one or the other.

The role of phase modulation

A folder on a sine wave gives a nice result, but a simple one. Tide, Reef’s west-coast oscillator, first bends the carrier with a second oscillator (phase modulation, as in FM) and then folds. That means the thing being folded is already complicated, and the folder turns that into a very wide variety of overtones. With a whole-number ratio the result stays musical; with a fractional ratio it turns bell-like.

The pitfall: aliasing

Folding is the process most likely to create aliasing, because each fold adds harmonics and there is no limit. A heavily folded sound at 1 kHz has important components at 20 kHz and beyond. Aliasing will fold them back into the audible range as false, inharmonic tones. This is why Reef runs its folder oversampled by default, and why the quality of the filter on the way down matters.

It is an easy thing to hear. This is a 440 Hz sine with the drive rising from 1 to 12, folded two ways: without any protection, and oversampled four times.

Listen. Folding with no antialiasing. As the drive rises, listen for the whistles and chirps that don't belong to the note.
Listen. The same drive sweep, oversampled four times. The sound still gets brighter, but the extra tones are gone.

Using a folder, practically

  1. Start with a sine. It’s the cleanest input, and it shows you what the folder is doing.
  2. Modulate the fold. An envelope on the fold amount is the most classic west-coast sound: bright attack, soft finish.
  3. Offset the fold. Moving the fold off center (the Symmetry control in Tide) brings in even harmonics and a different character.
  4. Follow it with a low pass gate, which is what the next-but-one post is about.
  5. Keep an eye on the bottom. Heavy folding can empty the fundamental. Tide has a fundamental floor, which keeps the root note audible where the folder would notch it out.
Listen. A bell patch: a sine carrier modulated at a ratio of 3, a moderate fold, and a long decay.

The next post turns this into a full west-coast patch on a minilogue xd.