Skip to content

Commit

Permalink
Remove a squanky self assign in Flanger
Browse files Browse the repository at this point in the history
surge-synthesizer/surge#7083

basically rewrite a bit of code which threw a warning for good
reason.
  • Loading branch information
baconpaul committed Jul 4, 2023
1 parent 7688619 commit b29cb92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/sst/effects/Flanger.h
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,10 @@ inline void Flanger<FXConfig>::processBlock(float *__restrict dataL, float *__re
feedbackScale *= 0.7;
}

if (fbv < 0)
fbv = fbv;
else if (fbv > 1)
fbv = fbv;
else
if (fbv > 0 && fbv < 1)
{
fbv = sqrt(fbv);
}

feedback.newValue(feedbackScale * fbv);
fb_hf_damping.newValue(0.4 * this->floatValue(fl_damping));
Expand Down

0 comments on commit b29cb92

Please sign in to comment.