Waveset Distortion
A waveset is the stretch of a signal between two consecutive upward zero crossings. Trevor Wishart introduced the idea in Audible Design (1994), and waveset processes are some of the oldest tools in the Composers Desktop Project, the set of command-line sound programs he and others have maintained since the 1980s.
For a sine or a sawtooth, one waveset is exactly one period. For anything with a richer spectrum there can be several wavesets per period, because the waveform crosses zero more than once per cycle, and for noisy or polyphonic material the segmentation is close to random. That unpredictability is a big part of how these effects sound.
Distortion without touching the samples
Most distortion works sample by sample. Clipping, wavefolding, bitcrushing and saturation all take each sample value and map it to a new one. Waveset processing leaves the sample values alone and works on the segments instead:
- Repeat each waveset a few times, which stretches the sound in time with a buzzy, stepped quality.
- Omit every nth waveset, or replace it with silence.
- Reverse each waveset in place.
- Stretch or squash a waveset to a new length, which moves its local pitch.
- Shuffle or sort wavesets within a short window.
- Change the level of individual wavesets.
The results rarely sound like distortion in the usual sense. A vocal turns mechanical without getting harsh, pads start to sputter, and basslines break up into irregular rhythms. All of these effects share a glitchy, crackling character, and it gets stronger the noisier the input is.
They work best on monophonic sounds with little noise: a solo voice, a single synth line, a bass. Because everything depends on where the zero crossings land, high-pass the input first to remove any DC offset. Any filter you put before the effect changes the segmentation, sometimes a lot, so the pre-filter is worth treating as a parameter in its own right.
The lab below cuts a short synthetic tone (110 Hz with a few inharmonic partials) at every zero crossing, so each segment is about half a waveset. Select one or more (Shift-click for a range), then reverse, repeat, delete, stretch, squash, invert or change the level of just those and listen to the result.
For a more involved take, Nathan Ho's Audio Effects with Wavesets and K-Means Clustering groups wavesets by length and loudness and replaces each one with a representative from its group. The Waveset Quantizer on this site is built on the same idea.