BiquadFilterNode Class
A second-order filter (https://webaudio.github.io/web-audio-api/#BiquadFilterNode): lowpass, highpass, bandpass, shelves, peaking, notch or allpass, with the coefficients of the Audio EQ Cookbook.
public sealed class BiquadFilterNode : AudioNode- Inheritance
AudioNodeBiquadFilterNode
Constructors
| Name | Description |
|---|---|
| BiquadFilterNode(BaseAudioContext, BiquadFilterOptions?) | Creates a biquad filter. |
BiquadFilterNode(BaseAudioContext, BiquadFilterOptions?)
BiquadFilterNode.csCreates a biquad filter.
public BiquadFilterNode(BaseAudioContext context, BiquadFilterOptions? options = null)Properties
| Name | Description |
|---|---|
| Detune | Gets the detune of the frequency in cents. |
| Frequency | Gets the frequency in Hz. |
| Gain | Gets the gain in dB (shelves and peaking). |
| Q | Gets the quality factor. |
| Type | Gets or sets the type of the filter. |
Detune
BiquadFilterNode.csFrequency
BiquadFilterNode.csGets the gain in dB (shelves and peaking).
public AudioParam Gain { get; }Gets the quality factor.
public AudioParam Q { get; }Gets or sets the type of the filter.
public BiquadFilterType Type { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| GetFrequencyResponse(ReadOnlySpan<byte>, Span<byte>, Span<byte>) | Computes the frequency response of the filter for the current values of its parameters. |
GetFrequencyResponse(ReadOnlySpan<byte>, Span<byte>, Span<byte>)
BiquadFilterNode.csComputes the frequency response of the filter for the current values of its parameters.
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).