Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

AudioContext.createIIRFilter()

这篇文章需要技术复核。如何帮忙。

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

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

Syntax

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

Parameters

feedforward
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.
feedback
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.

Exceptions

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

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 50 (50) ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support 49.0 50.0 (50) ? ? ? ? 49.0

See also

文档标签和贡献者

 此页面的贡献者: Sheppy, PushpitaPikuDey, jpmedley
 最后编辑者: Sheppy,