pub struct BiquadCoefs {
    pub a1: f32,
    pub a2: f32,
    pub b0: f32,
    pub b1: f32,
    pub b2: f32,
}

Fields

a1: f32a2: f32b0: f32b1: f32b2: f32

Implementations

Returns settings for a Butterworth lowpass filter. Cutoff is the -3 dB point of the filter in Hz.

Returns the Q for cascading a butterworth filter:

Returns settings for a lowpass filter with a specific q

Returns settings for a constant-gain bandpass resonator. The center frequency is given in Hz. Bandwidth is the difference in Hz between -3 dB points of the filter response. The overall gain of the filter is independent of bandwidth.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.