A WaveShaperNode always has exactly one input and one output.
A WaveShaperNode always has exactly one input and one output.
Constructor.
The WaveShaperNode() constructor of the Web Audio API creates a new web.audio.WaveShaperNode
object which is an web.audio.AudioNode
that represents a non-linear distorter.
Inherits parameters from the web.audio.AudioNodeOptions
dictionary.
context
A reference to an web.audio.AudioContext
.
options Optional
Options are as follows:
curve: The shaping curve used for the waveshaping effect. The input signal is nominally within the range [-1;1]. oversample: Specifies what type of oversampling (if any) should be used when applying the shaping curve. Valid values are 'none', '2x', or '4x'. The default is 'none'.
See also: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode
Constructor. The WaveShaperNode() constructor of the Web Audio API creates a new `web.audio.WaveShaperNode` object which is an `web.audio.AudioNode` that represents a non-linear distorter. Inherits parameters from the `web.audio.AudioNodeOptions` dictionary. context A reference to an `web.audio.AudioContext`. options Optional Options are as follows: curve: The shaping curve used for the waveshaping effect. The input signal is nominally within the range [-1;1]. oversample: Specifies what type of oversampling (if any) should be used when applying the shaping curve. Valid values are 'none', '2x', or '4x'. The default is 'none'. See also: `https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode`
(curve this)
Property.
The curve property of the web.audio.WaveShaperNode
interface
a js.Float32Array
of numbers describing the distortion to apply.
var audioCtx = new AudioContext(); var distortion = audioCtx.createWaveShaper(); distortion.curve = myCurveDataArray; // myCurveDataArray is a Float32Array
See also: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve
Property. The curve property of the `web.audio.WaveShaperNode` interface a `js.Float32Array` of numbers describing the distortion to apply. `var audioCtx = new AudioContext(); var distortion = audioCtx.createWaveShaper(); distortion.curve = myCurveDataArray; // myCurveDataArray is a Float32Array` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve`
(oversample this)
Property.
The oversample property of the web.audio.WaveShaperNode
interface
an enumerated value indicating if oversampling must be used.
is a technique for creating more samples (up-sampling) before
a distortion effect to the audio signal.
distortion.oversample = enumeratedValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample
Property. The oversample property of the `web.audio.WaveShaperNode` interface an enumerated value indicating if oversampling must be used. is a technique for creating more samples (up-sampling) before a distortion effect to the audio signal. `distortion.oversample = enumeratedValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample`
(set-curve! this val)
Property.
The curve property of the web.audio.WaveShaperNode
interface
a js.Float32Array
of numbers describing the distortion to apply.
var audioCtx = new AudioContext(); var distortion = audioCtx.createWaveShaper(); distortion.curve = myCurveDataArray; // myCurveDataArray is a Float32Array
See also: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve
Property. The curve property of the `web.audio.WaveShaperNode` interface a `js.Float32Array` of numbers describing the distortion to apply. `var audioCtx = new AudioContext(); var distortion = audioCtx.createWaveShaper(); distortion.curve = myCurveDataArray; // myCurveDataArray is a Float32Array` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve`
(set-oversample! this val)
Property.
The oversample property of the web.audio.WaveShaperNode
interface
an enumerated value indicating if oversampling must be used.
is a technique for creating more samples (up-sampling) before
a distortion effect to the audio signal.
distortion.oversample = enumeratedValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample
Property. The oversample property of the `web.audio.WaveShaperNode` interface an enumerated value indicating if oversampling must be used. is a technique for creating more samples (up-sampling) before a distortion effect to the audio signal. `distortion.oversample = enumeratedValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close