Skip to content

Commit

Permalink
Update ChordVault.cpp
Browse files Browse the repository at this point in the history
In bypass the output ports now stay at the same number of channels.
Fixes click in bypass mode and Macro Oscillator 2
  • Loading branch information
patheros committed Jul 25, 2022
1 parent c089da4 commit 047cd50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ChordVault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ struct ChordVault : Module {
configOutput(GATE_OUT_OUTPUT, "Gates");
configOutput(CV_OUT_OUTPUT, "V/octs");



initalize();
}

Expand Down Expand Up @@ -291,6 +289,12 @@ struct ChordVault : Module {
firstProcess = true;
}

void processBypass(const ProcessArgs& args) override{
//Even in bypass keep the number of output channels the same. This prevents clicking when connecte to some VCOs like Macro Oscillator 2
outputs[CV_OUT_OUTPUT].setChannels(activeChannels);
outputs[GATE_OUT_OUTPUT].setChannels(activeChannels);
}

void process(const ProcessArgs& args) override {

outputs[CV_OUT_OUTPUT].setChannels(activeChannels);
Expand Down

0 comments on commit 047cd50

Please sign in to comment.