Fixing sample player reverse

This commit is contained in:
Weird Constructor 2022-07-20 05:23:20 +02:00
parent bad3e2043e
commit 7c26d1971f
2 changed files with 4 additions and 1 deletions

View file

@ -5,3 +5,6 @@
about implementing new DSP nodes.
* Bugfix: TriSawLFO (TsLFO) node did output too high values if the `rev`
parameter was changed or modulated at runtime.
* Bugfix: Found a bug in cubic interpolation in the sample player and
similar bugs in the delay line (and all-pass & comb filters). Refactored
the cubic interpolation and tested it seperately now.

View file

@ -148,7 +148,7 @@ impl Sampl {
return 0.0;
}
let j = self.phase.floor() as usize;
let j = self.phase.floor() as usize % sd_len;
let i = ((sd_len - 1) - j);
let f = self.phase.fract();