Skip to main content

vec_one_pole

Function vec_one_pole 

Source
pub fn vec_one_pole(
    state: &mut OnePoleState,
    dst: &mut [f32],
    src: &[f32],
    coefficient: f32,
)
Expand description

One-pole lowpass filter (6 dB/oct). Processes a block of samples.

coefficient controls the cutoff: 0.0 = no filtering (pass-through), approaching 1.0 = heavy lowpass. Compute from cutoff frequency: coefficient = exp(-2π * cutoff_hz / sample_rate).