IIRFilterNode Class
A general infinite impulse response filter (https://webaudio.github.io/web-audio-api/#IIRFilterNode).
public sealed class IIRFilterNode : AudioNode- Inheritance
AudioNodeIIRFilterNode
Constructors
| Name | Description |
|---|---|
| IIRFilterNode(BaseAudioContext, IIRFilterOptions) | Creates an IIR filter. |
IIRFilterNode(BaseAudioContext, IIRFilterOptions)
IIRFilterNode.csCreates an IIR filter.
public IIRFilterNode(BaseAudioContext context, IIRFilterOptions options)Parameters
contextBaseAudioContextoptionsIIRFilterOptions
Exceptions
DomException- An array is empty or has more than 20 coefficients (a
NotSupportedError), the feedforward coefficients are all zero or the first feedback coefficient is zero (anInvalidStateError).
See also
Methods
| Name | Description |
|---|---|
| GetFrequencyResponse(ReadOnlySpan<byte>, Span<byte>, Span<byte>) | Computes the frequency response of the filter. |
GetFrequencyResponse(ReadOnlySpan<byte>, Span<byte>, Span<byte>)
IIRFilterNode.csComputes the frequency response of the filter.
public void GetFrequencyResponse(ReadOnlySpan<byte> frequencyHz, Span<byte> magResponse, Span<byte> phaseResponse)Parameters
frequencyHzReadOnlySpan<byte>- The frequencies in Hz (a
Float32Array). magResponseSpan<byte>- Receives the linear magnitudes (a
Float32Arrayof the same length). phaseResponseSpan<byte>- Receives the phases in radians (a
Float32Arrayof the same length).
Exceptions
DomException- The arrays have different lengths (an
InvalidAccessError).