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.

gain

Summary

Used in different ways by the various types. Defaults to 0, with a nominal range of -40 to 40. This parameter is k-rate.

Property of apis/webaudio/BiquadFilterNodeapis/webaudio/BiquadFilterNode

Syntax

Note: This property is read-only.

var result = BiquadFilterNode.gain;

Examples

var audioCtx = new AudioContext();
var biquadFilter = audioCtx.createBiquadFilter();
biquadfilter.gain.value = 25;

Related specifications

W3C Web Audio API
W3C Editor’s Draft