Fixing sample player reverse
This commit is contained in:
parent
bad3e2043e
commit
7c26d1971f
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue