Skip to content

WaveShaperNode

Hans Lindetorp edited this page Sep 22, 2021 · 1 revision

The WaveShaperNode interface represents a non-linear distorter. It is an AudioNode that uses a curve to apply a wave shaping distortion to the signal. Beside obvious distortion effects, it is often used to add a warm feeling to the signal.

Attributes:

  • amount (default = '400')
  • oversample ('none', '2x' or '4x')

Example

<?xml version="1.0" encoding="UTF-8"?>
<Audio version="1.0" timeUnit="ms" interactionArea="#touchArea" gain="-10dB">
  <Chain>
    <AudioBufferSourceNode loop="true" src="loop.mp3" trig="pointer"></AudioBufferSourceNode>
    <WaveShaperNode amount="400" oversample="2x"></WaveShaperNode>
  </Chain>
</Audio>

Read more: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode

Clone this wiki locally