This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
WaveShaperNode interface represents a non-linear distorter. It is an
AudioNode that use a curve to apply a waveshaping distortion to the signal. Beside obvious distortion effects, it is often used to add a warm feeling to the signal. A
WaveShaperNode always has exactly one input and one output.
- Number of inputs
- Number of outputs
- Channel count mode
- Channel count
2(not used in the default count mode)
- Channel interpretation
Inherits properties from its parent,
Float32Arrayof numbers describing the distortion to apply. The mid-element of the array is applied to any signal value of
0, the first to signal values of
-1and the last to signal values of
1; values lower than
-1or greater than
1are treated like
1respectively. If necessary, intermediate values of the distortion curve are linearly interpolated. The array can be a
nullvalue: in that case, no distortion is applied to the input signal.
Is an enumerated values indicating if oversampling must be used. Oversampling is a technique creating more samples (up-sampling) before to apply the distortion effect. Once applied, the number of samples is reduced to its initial numbers. This leads to better results, avoiding some aliasing, at the expense of the precision of the shaping curve. The possible values are:
Do not perform any oversampling.
Double the amount of samples before applying the shaping curve.
Multiply by 4 the amount of samples before applying the shaping curve.
No specific method; inherits methods from its parent,
|Web Audio API||Working Draft|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Basic support||(Yes)webkit||Activated on Nightly only||Not supported||Not supported||?|
|Feature||Android||Firefox Mobile (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||Not supported||Activated on Nightly only||Not supported||Not supported||?|
- Using Web Audio