BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

commit abe6f2be6d4816384ec3ce5eff2020ea16a73a14
parent 3ec418b6e7599c705eef2e232f5450f3e491b684
Author: Matt Demanett <matt@demanett.net>
Date:   Mon, 10 Aug 2020 22:39:31 -0400

PEQ14: make frequency mode switch work when module is not active.

Diffstat:
Msrc/PEQ14.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/PEQ14.cpp b/src/PEQ14.cpp @@ -132,8 +132,9 @@ void PEQ14::postProcessAlways(const ProcessArgs& args) { _rms[i] = _rmsSums[i] * _inverseChannels; } - lights[FMOD_RELATIVE_LIGHT].value = !_fullFrequencyMode; - lights[FMOD_FULL_LIGHT].value = _fullFrequencyMode; + bool ffm = params[FMOD_PARAM].getValue() > 0.5f; + lights[FMOD_RELATIVE_LIGHT].value = !ffm; + lights[FMOD_FULL_LIGHT].value = ffm; } struct PEQ14Widget : BandExcludeModuleWidget {