surgefx-conditioner 0.2.12-alpha.0

surge synthesizer -- conditioner effect
crate::ix!();

#[test] pub fn conditioner_smoke() {

    const N: usize = 32;

    let mut l: Vec<f32> = (0..N).map(|x| surge_math::correlated_noise(x as f64, 0.1) as f32).collect();
    let mut r: Vec<f32> = (0..N).map(|x| surge_math::correlated_noise(x as f64, 0.1) as f32).collect();

    println!("l: {:?}",l); 
    println!("r: {:?}",r); 

    let srunit   = SampleRateHandle::default();
    let tuner    = TunerHandle::new(&srunit);
    let tables   = TablesHandle::new(&srunit);

    let mut x    = Conditioner::new(&tuner, &tables, &srunit);

    for _ in 0..24{

        x.process::<N>(
            l.as_mut_slice().try_into().unwrap(), 
            r.as_mut_slice().try_into().unwrap()
        );

        println!("l: {:?}",l); 
        println!("r: {:?}",r); 
    }
}