Waveshaper Op


add waveshaping (distortion, overdrive, fuzz) to an audio stream

The default transfer function for the waveshaper is taken from https://stackoverflow.com/a/22313408

Edit Documentation

Full Name
  • Ops.WebAudio.Waveshaper
  • Core Op - Official cables op
  • MIT
AuthorTest Patches


Example Patch Example Waveshaper OP

Waveshaper can be used to distort your audio slightly or fry it to a crisp. Watch the audio levels though...

Open In Editor


audio in (Object:audioNode)

audio input

Dry/Wet (Number)

dry wet control - 0 only dry, 1 only wet (distorted) signal

Waveshape Settings

Oversampling index (Number:integer )
Distortion Amount (Number:integer )

the amount of distortion (equals to the amount of sample points of the waveshaper's transfer function - more points = more distortion), inactive when waveshape array in is used

Waveshape Array In (Array)

array input for the waveshaper (custom distortion transfer function)

Output Gain (Number)


audio out (Object)

audio output

Curve Out (Array)

distortion curve array output (one-dimensional)

Curve Length (Number)

length of the curve array

Patches using Waveshaper

  • Examples
  • Public
  • My Patches


created opuser avatarsimod - 2021-04-19 11:10
Ops.User.simod.TestDistortion renamed to Ops.WebAudio.Waveshaperuser avatarsimod - 2021-04-19 17:21
fix: use default values on creationuser avatarpandur - 2022-02-07 09:24