From 47681a28f03a7b3f305c6654d92493ec33e9694f Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 19 Jun 2021 14:11:23 +0200 Subject: [PATCH] fixed delay time scale --- src/dsp/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsp/helpers.rs b/src/dsp/helpers.rs index a8e1837..077c47f 100644 --- a/src/dsp/helpers.rs +++ b/src/dsp/helpers.rs @@ -527,7 +527,7 @@ impl DelayBuffer { pub fn cubic_interpolate_at(&self, delay_time: f32) -> f32 { let data = &self.data[..]; let len = data.len(); - let s_offs = delay_time * self.srate; + let s_offs = (delay_time * self.srate) / 1000.0; let offs = s_offs.floor() as usize % len; let fract = s_offs.fract();