pub struct FilterParams {
    pub cutoff: f32,
    pub res: f32,
    pub drive: f32,
    pub mode: SvfMode,
    pub ladder_mode: LadderMode,
    pub g: f32,
    pub sample_rate: f32,
    pub zeta: f32,
    pub k_ladder: f32,
}
Expand description

Fields

cutoff: f32

Cutoff frequency 5.0 Hz to 20 kHz.

res: f32

Resonance, values between 0.0-1.0, default: 0.5

drive: f32

Filter drive, values between 1.0 and 15.8490 (gain to dB)

mode: SvfMode

The SVF filter mode.

ladder_mode: LadderMode

The Ladder filter mode.

g: f32

Calculated by the FilterParams::set_frequency function.

sample_rate: f32

Use the FilterParams::set_sample_rate function to update this.

zeta: f32

Resistance based internal parameter, set by FilterParams::set_resonance.

k_ladder: f32

Resistance based internal parameter, set by FilterParams::set_resonance.

Implementations

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

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.