Skip to content

Commit

Permalink
Fix a bug that allpass1Feedback wasn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukau committed Nov 11, 2019
1 parent ae68dad commit a0e158b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FDNCymbal/source/dsp/dspcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ void DSPCore::process(
serialAP1Sig = allpass1Saturation
? juce::dsp::FastMathApproximations::tanh(serialAP1Sig)
: serialAP1Sig;
serialAP1Sig = serialAP1->process(sample + serialAP1Sig);
serialAP1Sig
= serialAP1->process(sample + interpAllpass1Feedback.process() * serialAP1Sig);
float apOut = serialAP1Highpass->process(serialAP1Sig);

const float allpass2Feedback = interpAllpass2Feedback.process();
serialAP2Sig = apOut + allpass2Feedback * serialAP2Sig;
serialAP2Sig = apOut + interpAllpass2Feedback.process() * serialAP2Sig;
float sum = 0.0f;
for (auto &ap : serialAP2) sum += ap->process(serialAP2Sig);
serialAP2Sig = sum / serialAP2.size();
Expand Down

0 comments on commit a0e158b

Please sign in to comment.