Trait biquad::Biquad[][src]

pub trait Biquad<T> {
    fn run(&mut self, input: T) -> T;
fn update_coefficients(&mut self, new_coefficients: Coefficients<T>);
fn replace_coefficients(
        &mut self,
        new_coefficients: Coefficients<T>
    ) -> Coefficients<T>;
fn reset_state(&mut self); }

The required functions of a biquad implementation

Required methods

fn run(&mut self, input: T) -> T[src]

A single iteration of a biquad, applying the filtering on the input

fn update_coefficients(&mut self, new_coefficients: Coefficients<T>)[src]

Updating of coefficients

fn replace_coefficients(
    &mut self,
    new_coefficients: Coefficients<T>
) -> Coefficients<T>
[src]

Updating coefficients and returning the old ones. This is useful to avoid deallocating on the audio thread, since the Coefficients can then be sent to another thread for deallocation.

fn reset_state(&mut self)[src]

Set the internal state of the biquad to 0 without allocation.

Loading content...

Implementors

impl Biquad<f32> for DirectForm1<f32>[src]

impl Biquad<f32> for DirectForm2Transposed<f32>[src]

impl Biquad<f64> for DirectForm1<f64>[src]

impl Biquad<f64> for DirectForm2Transposed<f64>[src]

Loading content...