defaultValue
Summary
Initial value for the value attribute.
Property of apis/webaudio/AudioParamapis/webaudio/AudioParam
Syntax
Note: This property is read-only.
var result = AudioParam.defaultValue;
Return Value
Returns an object of type NumberNumber
Examples
var gainNode = audioCtx.createGain();
var gainDefault = gainNode.gain.defaultValue; //'gain' is the AudioParam
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft