Browse Source

Gates and Logic: Generate monophonic output when unpatched.

tags/v2.3.0
Andrew Belt 1 year ago
parent
commit
85dcc86b93
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Gates.cpp
  2. +1
    -1
      src/Logic.cpp

+ 1
- 1
src/Gates.cpp View File

@@ -64,7 +64,7 @@ struct Gates : Module {
}

void process(const ProcessArgs& args) override {
int channels = inputs[IN_INPUT].getChannels();
int channels = std::max(1, inputs[IN_INPUT].getChannels());

bool anyRise = false;
bool anyFall = false;


+ 1
- 1
src/Logic.cpp View File

@@ -55,7 +55,7 @@ struct Logic : Module {
}

void process(const ProcessArgs& args) override {
int channels = std::max(inputs[A_INPUT].getChannels(), inputs[B_INPUT].getChannels());
int channels = std::max({1, inputs[A_INPUT].getChannels(), inputs[B_INPUT].getChannels()});

bool bPush = params[B_PARAM].getValue() > 0.f;
bool anyState[8] = {};


Loading…
Cancel
Save