IIRFilterNode class

The interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed.

EventTarget

AudioNode

IIRFilterNode

Number of inputs 1

Number of outputs 1

Channel count mode "max"

Channel count Same as on the input

Channel interpretation "speakers"

Typically, it's best to use the BiquadFilterNode interface to implement higher-order filters. There are several reasons why:

Biquad filters are typically less sensitive to numeric quirks. The filter parameters of biquad filters can be automated. All even-ordered IIR filters can be created using BiquadFilterNode.

However, if you need to create an odd-ordered IIR filter, you'll need to use . You may also find this interface useful if you don't need automation, or for other reasons.

Note: Once the node has been created, you can't change its coefficients.

s have a tail-time reference; they continue to output non-silent audio with zero input. As an IIR filter, the non-zero input continues forever, but this can be limited after some finite time in practice, when the output has approached zero closely enough. The actual time that takes depends on the filter coefficients provided.

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

IIRFilterNode(BaseAudioContext context, IIRFilterOptions options)
factory

Properties

channelCount int

Available on AudioNode, provided by the PropsAudioNode extension

getter/setter pair
channelCountMode ChannelCountMode

Available on AudioNode, provided by the PropsAudioNode extension

getter/setter pair
channelInterpretation ChannelInterpretation

Available on AudioNode, provided by the PropsAudioNode extension

getter/setter pair
context BaseAudioContext

Available on AudioNode, provided by the PropsAudioNode extension

no setter
hashCode int
The hash code for this object.
no setterinherited
numberOfInputs int

Available on AudioNode, provided by the PropsAudioNode extension

no setter
numberOfOutputs int

Available on AudioNode, provided by the PropsAudioNode extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

connect(AudioNode destinationNode, [int? output = 0, int? input = 0]) AudioNode

Available on AudioNode, provided by the PropsAudioNode extension

disconnect([AudioNode? destinationNode, int? output, int? input]) → void

Available on AudioNode, provided by the PropsAudioNode extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Float32List phaseResponse) → void

Available on IIRFilterNode, provided by the PropsIIRFilterNode extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited