fn high_pass(sample_rate: u32, cutoff: f32) -> Filter {
        let (c, a0) = frequency_constants(sample_rate, cutoff);
        Filter {
            b0: c * a0,
            b1: -c * a0,
            a: (1.0 - c) * a0,
            prev_x: 0.0,
            prev_y: 0.0,
        }
    }
/// Constructs a new high pass filter
Constructs a new high pass filter
Constructs a new high pass filter
fn high_pass(sample_rate: u32, cutoff: f32) -> Filter {
        let (c, a0) = frequency_constants(sample_rate, cutoff);
        Filter {
            b0: c * a0,
            b1: -c * a0,
            a: (1.0 - c) * a0,
            prev_x: 0.0,
            prev_y: 0.0,
        }
    }
fn high_pass ( sample_rate : u32 , cutoff : f32 ) -> Filter { let ( c , a0 ) = frequency_constants ( sample_rate , cutoff ) ; Filter { b0 : c * a0 , b1 : - c * a0 , a : ( 1.0 - c ) * a0 , prev_x : 0.0 , prev_y : 0.0 , } }
Constructs a new high pass filter
Constructs a new high pass filter
sample_rate
u32
cutoff
f32
sample_rate
u32
cutoff
f32