Skip to content

Commit

Permalink
Add bypass routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBelt committed Aug 23, 2021
1 parent 25ac8bc commit 3e6c9d4
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Clouds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ struct Clouds : Module {
configOutput(OUT_L_OUTPUT, "Left");
configOutput(OUT_R_OUTPUT, "Right");

configBypass(IN_L_INPUT, OUT_L_OUTPUT);
configBypass(IN_R_INPUT, OUT_R_OUTPUT);

const int memLen = 118784;
const int ccmLen = 65536 - 128;
block_mem = new uint8_t[memLen]();
Expand Down
3 changes: 3 additions & 0 deletions src/Elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ struct Elements : Module {
configOutput(AUX_OUTPUT, "Left");
configOutput(MAIN_OUTPUT, "Right");

configBypass(BLOW_INPUT, AUX_OUTPUT);
configBypass(STRIKE_INPUT, MAIN_OUTPUT);

for (int c = 0; c < 16; c++) {
parts[c] = new elements::Part();
// In the Mutable Instruments code, Part doesn't initialize itself, so zero it here.
Expand Down
3 changes: 3 additions & 0 deletions src/Rings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ struct Rings : Module {
configOutput(ODD_OUTPUT, "Odd");
configOutput(EVEN_OUTPUT, "Even");

configBypass(IN_INPUT, ODD_OUTPUT);
configBypass(IN_INPUT, EVEN_OUTPUT);

strummer.Init(0.01, 44100.0 / 24);
part.Init(reverb_buffer);
string_synth.Init(reverb_buffer);
Expand Down
5 changes: 5 additions & 0 deletions src/Ripples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ struct Ripples : Module {
configOutput(LP4_OUTPUT, "Low-pass 4-pole (24 dB/oct)");
configOutput(LP4VCA_OUTPUT, "Low-pass 4-pole (24 dB/oct) VCA");

configBypass(IN_INPUT, BP2_OUTPUT);
configBypass(IN_INPUT, LP2_OUTPUT);
configBypass(IN_INPUT, LP4_OUTPUT);
configBypass(IN_INPUT, LP4VCA_OUTPUT);

onSampleRateChange();
}

Expand Down
2 changes: 2 additions & 0 deletions src/Shelves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ struct Shelves : Module {
configOutput(P2_LP_OUTPUT, "Parametric 2 low-pass");
configOutput(OUT_OUTPUT, "Audio");

configBypass(IN_INPUT, OUT_OUTPUT);

onReset();
}

Expand Down
3 changes: 3 additions & 0 deletions src/Streams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ struct Streams : Module {
configOutput(CH1_SIGNAL_OUTPUT, "Channel 1");
configOutput(CH2_SIGNAL_OUTPUT, "Channel 2");

configBypass(CH1_SIGNAL_INPUT, CH1_SIGNAL_OUTPUT);
configBypass(CH2_SIGNAL_INPUT, CH2_SIGNAL_OUTPUT);

onReset();
}

Expand Down
2 changes: 2 additions & 0 deletions src/Warps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ struct Warps : Module {
configOutput(MODULATOR_OUTPUT, "Modulator");
configOutput(AUX_OUTPUT, "Auxiliary");

configBypass(MODULATOR_INPUT, MODULATOR_OUTPUT);

memset(&modulator, 0, sizeof(modulator));
modulator.Init(96000.0f);
}
Expand Down

0 comments on commit 3e6c9d4

Please sign in to comment.