Vous lisez la version anglaise de ce contenu car il n’existe pas encore de traduction dans cette langue. Aidez-nous à traduire cet article !

The createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.


var iirFilter = AudioContext.createIIRFilter(feedforward, feedback);


An array of floating-point values specifying the feedforward (numerator) coefficients for the transfer function of the IIR filter. The maximum length of this array is 20, and at least one value must be nonzero.
An array of floating-point values specifying the feedback (denominator) coefficients for the transfer function of the IIR filter. This array may have up to 20 members, the first of which must not be zero.

Return value

An IIRFilterNode implementing the filter with the specified feedback and feedforward coefficient arrays.


All of the feedforward coefficients are 0, and/or the first feedback coefficient is 0.
One or both of the input arrays exceeds 20 members.


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

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
createIIRFilterChrome Full support 49Edge Full support YesFirefox Full support 50IE No support NoOpera Full support YesSafari ? WebView Android Full support 49Chrome Android Full support 49Firefox Android Full support 50Opera Android Full support YesSafari iOS No support NoSamsung Internet Android Full support Yes


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also