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);
feedforwardfeedbackAn IIRFilterNode implementing the filter with the specified feedback and feedforward coefficient arrays.
InvalidStateErrorfeedforward coefficients are 0, and/or the first feedback coefficient is 0.NotSupportedError| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'createIIRFilter()' in that specification. | Working Draft |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 49 | Yes | 50 | ? | ? | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 49 | 49 | Yes | 50 | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter