1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix to reverb algorithm.

This commit is contained in:
jules 2012-12-02 17:50:50 +00:00
parent 54eebff76d
commit 3262a3c548

View file

@ -176,11 +176,10 @@ public:
const float input = samples[i] * gain;
float output = 0;
int j;
for (j = 0; j < numCombs; ++j) // accumulate the comb filters in parallel
for (int j = 0; j < numCombs; ++j) // accumulate the comb filters in parallel
output += comb[0][j].process (input);
for (j = 0; j < numAllPasses; ++j) // run the allpass filters in series
for (int j = 0; j < numAllPasses; ++j) // run the allpass filters in series
output = allPass[0][j].process (output);
samples[i] = output * wet1 + input * dry;
@ -205,7 +204,7 @@ private:
shouldUpdateDamping = false;
if (isFrozen (parameters.freezeMode))
setDamping (1.0f, 0.0f);
setDamping (0.0f, 1.0f);
else
setDamping (parameters.damping * dampScaleFactor,
parameters.roomSize * roomScaleFactor + roomOffset);