Waveshaper Op

Waveshaper

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


<p>The default transfer function for the waveshaper is taken from <a href="https://stackoverflow.com/a/22313408">https://stackoverflow.com/a/22313408</a></p>


Full Name
  • Ops.WebAudio.Waveshaper
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest 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

INPUT PORTS


audio in (Object:audioNode)

<p>audio input</p>

Dry/Wet (Number)

<p>dry wet control - 0 only dry, 1 only wet (distorted) signal</p>

Waveshape Settings

Oversampling index (Number:

<i>integer</i>

)

Distortion Amount (Number:

<i>integer</i>

)

<p>the amount of distortion (equals to the amount of sample points of the waveshaper&#39;s transfer function - more points = more distortion), inactive when waveshape array in is used</p>

Waveshape Array In (Array)

<p>array input for the waveshaper (custom distortion transfer function)</p>

Output Gain (Number)

OUTPUT PORTS


audio out (Object)

<p>audio output</p>

Curve Out (Array)

<p>distortion curve array output (one-dimensional)</p>

Curve Length (Number)

<p>length of the curve array</p>


Patches using Waveshaper

  • Examples
  • Public
  • My Patches

Changelog


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