Skip to content

Commit

Permalink
Avoid ill effects of mod 0 in Hall
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwillis committed Mar 4, 2021
1 parent 145d6ad commit f65000c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/dragonfly-hall-reverb/DSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ void DragonflyReverbDSP::run(const float** inputs, float** outputs, uint32_t fra
case paramWander: late.setwander (value); break;
case paramDecay: late.setrt60 (value); break;
case paramEarlySend: early_send = (value / 100.0); break;
case paramModulation: late.setspinfactor (value / 100.0);
late.setlfofactor (value / 100.0); break;
case paramModulation:
// Avoid ill effects of zero modulation, set to one tenth of a percent instead
float mod = value == 0.0 ? 0.001 : value / 100.0;
late.setspinfactor (mod);
late.setlfofactor (mod);
break;
}
}
}
Expand Down

0 comments on commit f65000c

Please sign in to comment.