Liking cljdoc? Tell your friends :D
ClojureScript only.

web.audio.GainNode

The GainNode interface represents a change in volume. It is an audio-processing module that causes a given gain to be applied the input data before its propagation to the output. A GainNode has exactly one input and one output, both with the same number channels.

The GainNode interface represents a change in volume. It is an
audio-processing module that causes a given gain to be applied
the input data before its propagation to the output. A GainNode
has exactly one input and one output, both with the same number
channels.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The GainNode() constructor of the Web Audio API creates a new web.audio.GainNode object which an web.audio.AudioNode that represents a change in volume.

Inherits parameters from the web.audio.AudioNodeOptions dictionary.

\tcontext \tA reference to an web.audio.AudioContext. \toptions Optional \tOptions are as follows:

\t\tgain: The amount of gain to apply. This parameter is a-rate and it's nominal range is (-∞,+∞). The default is 1.

See also: https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode

Constructor.

The GainNode() constructor of the Web Audio API creates a new `web.audio.GainNode` object which an `web.audio.AudioNode` that represents a change in volume.

Inherits parameters from the `web.audio.AudioNodeOptions` dictionary.


\tcontext
\tA reference to an `web.audio.AudioContext`.
\toptions Optional
\tOptions are as follows:

\t\tgain: The amount of gain to apply. This parameter is a-rate and it's nominal range is (-∞,+∞). The default is 1.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode`
sourceraw docstring

gaincljs

(gain this)

Property.

[Read Only]

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var gainNode = audioCtx.createGain(); gainNode.gain.value = 0.5;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain

Property.

[Read Only]

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var gainNode = audioCtx.createGain();
gainNode.gain.value = 0.5;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close