value
Summary
The parameter’s floating-point value. If a value is set outside the allowable range no exception is thrown, because these limits are nominal and may be exceeded. If a value is set during a time when there are any automation events scheduled then it will be ignored and no exception will be thrown.
Property of apis/webaudio/AudioParamapis/webaudio/AudioParam
Syntax
var result = AudioParam.value;
AudioParam.value = value;
Return Value
Returns an object of type NumberNumber
Examples
var gainNode = audioCtx.createGain();
gainNode.gain.value = 0; //'gain' is the AudioParam
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft