Skip to content

Commit

Permalink
Always recompute coefficients when modulating ladder filter frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Feb 14, 2021
1 parent f8c6dc2 commit 2bc7f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_ladder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void AudioFilterLadder::update(void)
float FCmod = blockb->data[i] * octaveScale;
float ftot = Fbase * fast_exp2f(FCmod);
if (ftot > MAX_FREQUENCY) ftot = MAX_FREQUENCY;
if (FCmod != 0) compute_coeffs(ftot);
compute_coeffs(ftot);
}
if (QmodActive) {
float Qmod = blockc->data[i] * (1.0f/32768.0f);
Expand Down

0 comments on commit 2bc7f4c

Please sign in to comment.