diff --git a/src/LFO.cpp b/src/LFO.cpp index 1831e57..9b34d02 100644 --- a/src/LFO.cpp +++ b/src/LFO.cpp @@ -116,8 +116,8 @@ void LFO::step() { outputs[SAW_OUTPUT].value = 5.0 * oscillator.saw(); outputs[SQR_OUTPUT].value = 5.0 * oscillator.sqr(); - lights[PHASE_POS_LIGHT].setBrightness(fmaxf(0.0, oscillator.light())); - lights[PHASE_NEG_LIGHT].setBrightness(fmaxf(0.0, -oscillator.light())); + lights[PHASE_POS_LIGHT].setBrightnessSmooth(fmaxf(0.0, oscillator.light())); + lights[PHASE_NEG_LIGHT].setBrightnessSmooth(fmaxf(0.0, -oscillator.light())); } @@ -212,8 +212,8 @@ void LFO2::step() { interp = crossf(oscillator.saw(), oscillator.sqr(), wave - 2.0); outputs[INTERP_OUTPUT].value = 5.0 * interp; - lights[PHASE_POS_LIGHT].setBrightness(fmaxf(0.0, oscillator.light())); - lights[PHASE_NEG_LIGHT].setBrightness(fmaxf(0.0, -oscillator.light())); + lights[PHASE_POS_LIGHT].setBrightnessSmooth(fmaxf(0.0, oscillator.light())); + lights[PHASE_NEG_LIGHT].setBrightnessSmooth(fmaxf(0.0, -oscillator.light())); } diff --git a/src/SEQ3.cpp b/src/SEQ3.cpp index 27f6672..720f9c8 100644 --- a/src/SEQ3.cpp +++ b/src/SEQ3.cpp @@ -260,7 +260,7 @@ SEQ3Widget::SEQ3Widget() { struct SEQ3GateModeItem : MenuItem { SEQ3 *seq3; SEQ3::GateMode gateMode; - void onAction() override { + void onAction(EventAction &e) override { seq3->gateMode = gateMode; } void step() override {