Skip to content

Commit

Permalink
fix: Parameter completion in freeverb is no longer correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Jan 25, 2022
1 parent 2b8c601 commit c9f8a8c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/ame_Reverb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ class Freeverb
uint_fast32_t i = 0;
for (uint_fast32_t samp = 0; samp < block.getNumSamplesPerChannel(); ++samp)
{
const FloatType damp = damping.getNextValue();
const FloatType feedbck = feedback.getNextValue();
const FloatType dry = dryGain.getNextValue();
const FloatType wet = wetGain1.getNextValue();
for (uint_fast32_t ch = 0; ch < block.getNumChannels(); ++ch)
{
const FloatType input = block.view[i] * gain;
FloatType output {};
const FloatType damp = damping.getNextValue();
const FloatType feedbck = feedback.getNextValue();

for (int cmb = 0; cmb < numCombs; ++cmb) //accumulate the comb filters in parallel
{
Expand All @@ -146,9 +148,6 @@ class Freeverb
output = allPass[ch][ap].process (output);
}

const FloatType dry = dryGain.getNextValue();
const FloatType wet = wetGain1.getNextValue();

block.view[i] = output * wet + input * dry;
++i;
}
Expand Down

0 comments on commit c9f8a8c

Please sign in to comment.