Struct synthrs::filter::AllPass [−][src]
pub struct AllPass {
pub feedback: f64,
// some fields omitted
}A stateful all-pass filter.
https://en.wikipedia.org/wiki/All-pass_filter
use synthrs::filter::AllPass; let mut allpass = AllPass::new(1.0, 44_100, 0.5); let samples: Vec<f64> = vec![1.0, 2.0, 3.0, 4.0]; let filtered = samples.into_iter().map(|sample| allpass.tick(sample));
Taken from: https://github.com/irh/freeverb-rs/blob/master/freeverb/src/all_pass.rs
Fields
feedback: f64Feedback multiplier (0.5 works)
Implementations
impl AllPass[src]
impl AllPass[src]