home/ modules/ waveshaping-and-distortion

Waveshaping and distortion: nonlinear timbre and saturation

  • learner can add harmonics with nonlinear processing — waveshaping, saturation, hard clipping, bitcrushing — and control brightness with input amplitude
  • learner can choose between soft saturation and hard clipping for musical vs destructive results, and apply distortion tastefully to bass

Design a distorted bass patch: warm it with soft saturation, then push a parallel layer into a bitcrusher and waveshaper, comparing how each nonlinear stage changes the spectrum and where the sound stays recoverable.

Every bass-heavy genre — grime, dub techno, neurofunk, live-coded halftime — leans on the same secret: the low end that hits on a club rig and still reads on a phone speaker is never a clean sine. It has been pushed through something nonlinear. This module builds toward one whole task: a distorted bass patch with a warm saturated core and a deliberately degraded parallel layer, where you can articulate what each stage did to the spectrum and how far you can push before the sound stops being rescuable.

Start supported. First internalize the core mechanism — waveshaping as a nonlinear transfer function where input amplitude, not a filter, controls brightness — then drill the hands-on move of driving gain into a saturator and lowering its ceiling until the peaks clip. Warm a plain bassline with subtle tube-style saturation, hearing why restraint matters and why distortion is what makes a sine sub translate to small speakers. From there, escalate into destruction on purpose: the grime trick of an 8-bit bitcrusher on a sine, and the dub move of bit-crushing then bandpass-filtering harsh noise back into usable texture. The capstone is those moves unsupported, in parallel, with your own judgment about musical versus destructive.

The required atoms gate that judgment: without the saturation-versus-hard-clipping principle you cannot say where the sound stays recoverable, and without the waveshaping and warp-stage concepts you cannot explain what each stage changed. Supporting atoms are just-in-time enrichers — concrete tools (Surge XT’s waveshaper and Tape effect, SuperCollider’s Shaper), repair tactics like post-distortion shelving EQ, and period flavor such as 12-bit sampler crunch — pull them when your rig or genre calls for them.

Runnable examples

Generated from the context/ instrument corpus by concept (redistributable idioms only). Do not edit — regenerate with gen-module-examples.mjs.

bitcrush

s("bd*4").crush(4)

strudel-0022 · CC0

d1 $ sound "bd*4" # crush 4

tidal-0021 · CC0

sub-bass

osc 27.5 >> audio

punctual-0002 · CC0-1.0

synth :subpulse, note: :e1, sustain: 0.4, amp: 1.4

sonicpi-0016 · CC0

saturation-drive

d1 $ sound "bd*2" # shape 0.4

tidal-0033 · CC0

{ (SinOsc.ar(110) * 5).tanh * 0.2 }.play

supercollider-0009 · CC0

mono-bass

mono (saw [110,220,330]) >> audio

punctual-0013 · CC0-1.0

Atoms in this module

Required — these gate the capstone

Waveshaping synthesis passes a signal through a nonlinear shaping function, and input amplitude controls spectral brightness
Concept L3 Craft B
Driving gain into a saturator and lowering its ceiling clips the waveform peaks into distortion
Procedure L2 First instrument B
Soft saturation limits a too-hot signal more musically than hard clipping and leaves it recoverable downstream
Principle L3 Craft BE
Subtle tube simulation or overdrive warms a bassline, but too much distortion undoes it
Procedure L2 First instrument B
Adding distortion to a sine-wave sub-bass makes it audible on small speakers
Principle L2 First instrument BD
Routing a sine wave through a bitcrusher at 8-bit depth creates grime's characteristic lo-fi buzzy bass
Procedure L2 First instrument B
Bit-crushing a sound then bandpass-filtering it turns harsh noise into usable dub texture
Principle L3 Craft BD
Wavesets segment a signal at zero crossings and enable a catalog of micro-distortions
Concept L3 Craft B
Applying waveshaping distortion inside the oscillator warp stage creates harmonically richer, fatter timbres
Concept L3 Craft B

Supporting — enrichment, not gating

Digital clipping occurs when amplitude exceeds ±1, truncating the waveform and causing distortion
Concept L2 First instrument BD
Surge XT's waveshaper applies a nonlinear per-sample transfer function to add harmonic distortion
Concept L2 First instrument B
Shaper applies a waveshaping transfer function stored in a wavetable buffer to an audio signal
Concept L3 Craft B
Surge XT's Tape effect physically models analog tape saturation, bias, speed, and playhead geometry
Concept L3 Craft BD
Shelving EQ after FM distortion restores high-end lost from the tube amp and overdrive
Procedure L2 First instrument BD
Running samples through a 12-bit engine adds the gritty crunch of classic Detroit drums
Concept L2 First instrument BA
Waveset manipulation treats individual waveform cycles as grains for extreme time-stretching and morphing in SuperCollider
Concept L4 Performance BF
Bitcrushing reduces bit depth or sample rate for digital lo-fi grit, distinct from analog saturation
Concept L2 First instrument BF
Hip-hop lo-fi texture comes from vinyl crackle, tape saturation, and bitcrushing — not from reverb wash
Concept L2 First instrument BA