This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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