Browse Source

Don't cut out sound on startup

pull/42/head
hemmer 2 years ago
parent
commit
9bd820a9db
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/MotionMTR.cpp

+ 6
- 6
src/MotionMTR.cpp View File

@@ -101,11 +101,6 @@ struct MotionMTR : Module {

void process(const ProcessArgs& args) override {

if (startingUp) {
processStartup(args);
return;
}

const LightDisplayType mode1 = (LightDisplayType) params[MODE1_PARAM].getValue();
const LightDisplayType mode2 = (LightDisplayType) params[MODE2_PARAM].getValue();
const LightDisplayType mode3 = (LightDisplayType) params[MODE3_PARAM].getValue();
@@ -125,7 +120,12 @@ struct MotionMTR : Module {
out3 += out2;
}

if (sliderUpdate.process()) {
// special light pattern when starting up :)
if (startingUp) {
processStartup(args);
}
// otherwise (periodically) update LEDS according to value
else if (sliderUpdate.process()) {
lightsForSignal(mode1, LIGHT_1, out1, args, 0);
lightsForSignal(mode2, LIGHT_2, out2, args, 1);
lightsForSignal(mode3, LIGHT_3, out3, args, 2);


Loading…
Cancel
Save