zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit dcf37e7e2ff1a256398eb0f43d4a99fcae663c17
parent b724f34784ca7c8fd315ce8a09226071e8cdabd4
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Tue, 27 Mar 2012 16:58:17 -0400

Chorus: fixed small noise problem

- Now there is no jitter due to conversion from float to int

Diffstat:
Msrc/Effects/Chorus.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Effects/Chorus.cpp b/src/Effects/Chorus.cpp @@ -90,7 +90,7 @@ void Chorus::out(const Stereo<float *> &input) dlk = 0; float tmp = dlk - mdel + maxdelay * 2.0f; //where should I get the sample from - F2I(tmp, dlhi); + dlhi = (int) tmp; dlhi %= maxdelay; float dlhi2 = (dlhi - 1 + maxdelay) % maxdelay; @@ -107,7 +107,7 @@ void Chorus::out(const Stereo<float *> &input) drk = 0; tmp = drk * 1.0f - mdel + maxdelay * 2.0f; //where should I get the sample from - F2I(tmp, dlhi); + dlhi = (int) tmp; dlhi %= maxdelay; dlhi2 = (dlhi - 1 + maxdelay) % maxdelay;