CreateIIRFilter

This article needs a technical review. How you can help.

The createIIRFilter() method of the AudioContext interface creates an IIRFilterNode, which represents a second order filter configurable as several different common filter types.

Syntax

var audioCtx = new AudioContext();
var iirFilter = audioCtx.createIIRFilter();

Returns

An IIRFilterNode.

Parameters

feedforward Optional
An array of doubles specifying the feedforward (numerator) coefficients for the transfer function of the IIR filter. The maximum length of this array could be 20. If all of the values are zero, an InvalidStateError will be thrown. A NotSupportedError will be thrown if the array length is 0 or greater than 20.
feedback Optional
An array of doubles specifying the feedback (denominator) coefficients for the tranfer function of the IIR filter. The maximum length of this array is 20. If the first element of the array is 0, an InvalidStateError is be thrown. A NotSupportedError is be thrown if the array length is 0 or greater than 20.

Specifications

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

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 49.0        
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support 49.0           49.0

See also

Document Tags and Contributors

 Contributors to this page: PushpitaPikuDey, jpmedley
 Last updated by: PushpitaPikuDey,