The maxValue read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.


var maxVal = audioParam.maxValue;


A floating-point Number indicating the maximum value permitted for the parameter's nominal range.

The default value of maxValue is the maximum positive single-precision floating-point value (+340,282,346,638,528,859,811,704,183,484,516,925,440).


const audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
console.log(gainNode.gain.maxValue); // 3.4028234663852886e38


Specification Status Comment
Web Audio API
The definition of 'maxValue' in that specification.
Working Draft  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support52 Yes53 No396
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5252 Yes5339 ?6.0

See also

Document Tags and Contributors

Contributors to this page: Sheppy, Jedipedia, fscholz, chrisdavidmills, jpmedley
Last updated by: Sheppy,