From e9086941210e0b41cb0bcdaab8afac2c6da60155 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 24 Sep 2021 04:22:46 -0400 Subject: [PATCH] Add port labels and bypass routes to VCAs. --- src/VCA.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/VCA.cpp b/src/VCA.cpp index 8de9565..5ef6ad6 100644 --- a/src/VCA.cpp +++ b/src/VCA.cpp @@ -34,6 +34,8 @@ struct VCA : Module { configInput(IN2_INPUT, "Channel 2"); configOutput(OUT1_OUTPUT, "Channel 1"); configOutput(OUT2_OUTPUT, "Channel 2"); + configBypass(IN1_INPUT, OUT1_OUTPUT); + configBypass(IN2_INPUT, OUT2_OUTPUT); } void processChannel(Input& in, Param& level, Input& lin, Input& exp, Output& out) { @@ -159,6 +161,10 @@ struct VCA_1 : Module { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); configParam(LEVEL_PARAM, 0.0, 1.0, 1.0, "Level", "%", 0, 100); configSwitch(EXP_PARAM, 0.0, 1.0, 1.0, "Response mode", {"Exponential", "Linear"}); + configInput(CV_INPUT, "CV"); + configInput(IN_INPUT, "Channel"); + configOutput(OUT_OUTPUT, "Channel"); + configBypass(IN_INPUT, OUT_OUTPUT); } void process(const ProcessArgs& args) override {