Skip to content

Commit

Permalink
Fix behavior when no operators are connected
Browse files Browse the repository at this point in the history
Set minimum channel count to 1 rather than 0
  • Loading branch information
anlexmatos committed Jan 6, 2022
1 parent 2382e32 commit fd9badb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AlgomorphLarge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void AlgomorphLarge::process(const ProcessArgs& args) {
}
}

this->channels = 0;
this->channels = 1;
for (int i = 0; i < 4; i++) {
//Determine polyphony count
if (this->channels < inputs[OPERATOR_INPUTS + i].getChannels())
Expand Down
2 changes: 1 addition & 1 deletion src/AlgomorphSmall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void AlgomorphSmall::process(const ProcessArgs& args) {
bool processCV = cvDivider.process();

//Determine polyphony count
this->channels = 0;
this->channels = 1;
for (int i = 0; i < 4; i++) {
if (this->channels < inputs[OPERATOR_INPUTS + i].getChannels())
this->channels = inputs[OPERATOR_INPUTS + i].getChannels();
Expand Down

0 comments on commit fd9badb

Please sign in to comment.