Commit c9fd63d3 authored by Pierre Donat-Bouillud's avatar Pierre Donat-Bouillud
Browse files

ZitaReverb

parent 24814b23
......@@ -11,8 +11,8 @@ use rand::distributions::Uniform;
use rand::prelude::*;
use audio_adaptive::audiograph::*;
use audio_adaptive::samplerate;
use audio_adaptive::faust_effect::*;
use audio_adaptive::samplerate;
fn osc_bench(c: &mut Criterion) {
let mut rng = SmallRng::seed_from_u64(345987);
......@@ -134,8 +134,8 @@ fn guitar_bench(c: &mut Criterion) {
c.bench_function_over_inputs(
"guitar",
move |b: &mut Bencher, n: &usize| {
let mut guitar = Guitar::new(1., 0.45, 0.9,1);
let mut input = vec![DspEdge::new(1, 1, *n, 44100); 1];
let mut guitar = Guitar::new(1., 0.45, 0.9, 1);
let input = vec![DspEdge::new(1, 1, *n, 44100); 1];
b.iter(|| {
let mut output = vec![DspEdge::new(1, 1, *n, 44100); 1];
guitar.process(&input, &mut output)
......@@ -168,5 +168,13 @@ fn transpose_bench(c: &mut Criterion) {
);
}
criterion_group!(benches, osc_bench, mod_bench, resampler_bench, mixer_bench, guitar_bench, transpose_bench);
criterion_group!(
benches,
osc_bench,
mod_bench,
resampler_bench,
mixer_bench,
guitar_bench,
transpose_bench
);
criterion_main!(benches);
......@@ -103,6 +103,7 @@ impl DspNode {
)),
"guitar" => Box::new(faust_effect::Guitar::from_node_infos(&node_infos)),
"transpose" => Box::new(faust_effect::Transposer::from_node_infos(&node_infos)),
"zita_reverb" => Box::new(faust_effect::ZitaReverb::from_node_infos(&node_infos)),
"sink" => Box::new(InputsOutputsAdaptor::new(
node_infos.nb_inlets as usize,
nb_channels,
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment