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]
&mut self,
new_coefficients: Coefficients<T>
) -> Coefficients<T>
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.
Implementors
impl Biquad<f32> for DirectForm1<f32>
[src]
fn run(&mut self, input: f32) -> f32
[src]
fn update_coefficients(&mut self, new_coefficients: Coefficients<f32>)
[src]
fn replace_coefficients(
&mut self,
new_coefficients: Coefficients<f32>
) -> Coefficients<f32>
[src]
&mut self,
new_coefficients: Coefficients<f32>
) -> Coefficients<f32>
fn reset_state(&mut self)
[src]
impl Biquad<f32> for DirectForm2Transposed<f32>
[src]
fn run(&mut self, input: f32) -> f32
[src]
fn update_coefficients(&mut self, new_coefficients: Coefficients<f32>)
[src]
fn replace_coefficients(
&mut self,
new_coefficients: Coefficients<f32>
) -> Coefficients<f32>
[src]
&mut self,
new_coefficients: Coefficients<f32>
) -> Coefficients<f32>
fn reset_state(&mut self)
[src]
impl Biquad<f64> for DirectForm1<f64>
[src]
fn run(&mut self, input: f64) -> f64
[src]
fn update_coefficients(&mut self, new_coefficients: Coefficients<f64>)
[src]
fn replace_coefficients(
&mut self,
new_coefficients: Coefficients<f64>
) -> Coefficients<f64>
[src]
&mut self,
new_coefficients: Coefficients<f64>
) -> Coefficients<f64>
fn reset_state(&mut self)
[src]
impl Biquad<f64> for DirectForm2Transposed<f64>
[src]
fn run(&mut self, input: f64) -> f64
[src]
fn update_coefficients(&mut self, new_coefficients: Coefficients<f64>)
[src]
fn replace_coefficients(
&mut self,
new_coefficients: Coefficients<f64>
) -> Coefficients<f64>
[src]
&mut self,
new_coefficients: Coefficients<f64>
) -> Coefficients<f64>