fixed delay time scale
This commit is contained in:
parent
cbc69f3ca3
commit
47681a28f0
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ impl DelayBuffer {
|
||||||
pub fn cubic_interpolate_at(&self, delay_time: f32) -> f32 {
|
pub fn cubic_interpolate_at(&self, delay_time: f32) -> f32 {
|
||||||
let data = &self.data[..];
|
let data = &self.data[..];
|
||||||
let len = data.len();
|
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 offs = s_offs.floor() as usize % len;
|
||||||
let fract = s_offs.fract();
|
let fract = s_offs.fract();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue