From 42c722a2138da692e4985d7fb3db12bb6ea8a18f Mon Sep 17 00:00:00 2001 From: hemmer <915048+hemmer@users.noreply.github.com> Date: Sun, 29 Dec 2024 13:43:05 +0000 Subject: [PATCH] Add missing input/output labels #59 --- src/Burst.cpp | 4 ++++ src/DualAtenuverter.cpp | 6 ++++++ src/Mixer.cpp | 4 ++++ src/Morphader.cpp | 3 +++ src/Muxlicer.cpp | 9 ++++++--- src/Percall.cpp | 1 + src/SamplingModulator.cpp | 8 ++++++++ src/SlewLimiter.cpp | 3 +++ src/SpringReverb.cpp | 9 +++++++++ src/Voltio.cpp | 2 +- 10 files changed, 45 insertions(+), 4 deletions(-) diff --git a/src/Burst.cpp b/src/Burst.cpp index 912609c..09a633b 100644 --- a/src/Burst.cpp +++ b/src/Burst.cpp @@ -198,6 +198,10 @@ struct Burst : Module { configInput(TIME_INPUT, "Time Division/Multiplication"); configInput(PROBABILITY_INPUT, "Probability"); configInput(TRIGGER_INPUT, "Trigger"); + + configOutput(TEMPO_OUTPUT, "Tempo"); + configOutput(EOC_OUTPUT, "End-of-cycle"); + configOutput(OUT_OUTPUT, "Burst"); ledUpdate.setDivision(ledUpdateRate); } diff --git a/src/DualAtenuverter.cpp b/src/DualAtenuverter.cpp index 46c8f77..977c5dd 100644 --- a/src/DualAtenuverter.cpp +++ b/src/DualAtenuverter.cpp @@ -30,6 +30,12 @@ struct DualAtenuverter : Module { configParam(OFFSET1_PARAM, -10.0, 10.0, 0.0, "Ch 1 offset", " V"); configParam(ATEN2_PARAM, -1.0, 1.0, 0.0, "Ch 2 gain"); configParam(OFFSET2_PARAM, -10.0, 10.0, 0.0, "Ch 2 offset", " V"); + + configInput(IN1_INPUT, "In 1"); + configInput(IN2_INPUT, "In 2"); + configOutput(OUT1_OUTPUT, "Out 1"); + configOutput(OUT2_OUTPUT, "Out 2"); + configBypass(IN1_INPUT, OUT1_OUTPUT); configBypass(IN2_INPUT, OUT2_OUTPUT); } diff --git a/src/Mixer.cpp b/src/Mixer.cpp index 7b813fc..358afad 100644 --- a/src/Mixer.cpp +++ b/src/Mixer.cpp @@ -36,6 +36,10 @@ struct Mixer : Module { configParam(CH3_PARAM, 0.0, 1.0, 0.0, "Ch 3 level", "%", 0, 100); configParam(CH4_PARAM, 0.0, 1.0, 0.0, "Ch 4 level", "%", 0, 100); + configInput(IN1_INPUT, "Ch 1"); + configInput(IN2_INPUT, "Ch 2"); + configInput(IN3_INPUT, "Ch 3"); + configInput(IN4_INPUT, "Ch 4"); configOutput(OUT1_OUTPUT, "Main"); configOutput(OUT2_OUTPUT, "Inverted"); } diff --git a/src/Morphader.cpp b/src/Morphader.cpp index 608c1c4..2418c5d 100644 --- a/src/Morphader.cpp +++ b/src/Morphader.cpp @@ -105,6 +105,9 @@ struct Morphader : Module { configSwitch(MODE + i, AUDIO_MODE, CV_MODE, AUDIO_MODE, string::f("Mode %d", i + 1), {"Audio", "CV"}); configInput(CV_INPUT + i, string::f("CV channel %d", i + 1)); } + for (int i = 0; i < NUM_MIXER_CHANNELS; i++) { + configOutput(OUT + i, string::f("Channel %d", i + 1)); + } configParam(FADER_LAG_PARAM, 2.0f / slewMax, 2.0f / slewMin, 2.0f / slewMax, "Fader lag", "s"); configParam(FADER_PARAM, -1.f, 1.f, 0.f, "Fader"); diff --git a/src/Muxlicer.cpp b/src/Muxlicer.cpp index cafa397..0345836 100644 --- a/src/Muxlicer.cpp +++ b/src/Muxlicer.cpp @@ -177,8 +177,8 @@ struct MultDivClock { static const std::vector clockOptionsQuadratic = {-16, -8, -4, -2, 1, 2, 4, 8, 16}; static const std::vector clockOptionsAll = {-16, -15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, 1, - 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 - }; + 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 +}; inline std::string getClockOptionString(const int clockOption) { return (clockOption < 0) ? ("x 1/" + std::to_string(-clockOption)) : ("x " + std::to_string(clockOption)); @@ -887,7 +887,7 @@ struct MuxlicerWidget : ModuleWidget { for (int clockOption : module->quadraticGatesOnly ? clockOptionsQuadratic : clockOptionsAll) { std::string optionString = getClockOptionString(clockOption); OutputClockScalingChildItem* clockItem = createMenuItem(optionString, - CHECKMARK(module->outputClockMultDiv.multDiv == clockOption)); + CHECKMARK(module->outputClockMultDiv.multDiv == clockOption)); clockItem->clockOutMulDiv = clockOption; clockItem->module = module; menu->addChild(clockItem); @@ -1079,6 +1079,9 @@ struct Mex : Module { for (int i = 0; i < 8; ++i) { configSwitch(STEP_PARAM + i, 0.f, 2.f, 0.f, string::f("Step %d", i + 1), {"Gate in/Clock Out", "Muted", "All Gates"}); } + + configInput(GATE_IN_INPUT, "Gate"); + configOutput(OUT_OUTPUT, "Gate"); } Muxlicer* findHostModulePtr(Module* module) { diff --git a/src/Percall.cpp b/src/Percall.cpp index 86c1e56..ba51231 100644 --- a/src/Percall.cpp +++ b/src/Percall.cpp @@ -47,6 +47,7 @@ struct Percall : Module { configInput(CH_INPUTS + i, string::f("Channel %d", i + 1)); configInput(TRIG_INPUTS + i, string::f("Channel %d trigger", i + 1)); configInput(CV_INPUTS + i, string::f("Channel %d CV", i + 1)); + configOutput(CH_OUTPUTS + i, string::f("Channel %d", i + 1)); configOutput(ENV_OUTPUTS + i, string::f("Channel %d envelope", i + 1)); envs[i].attackTime = attackTime; diff --git a/src/SamplingModulator.cpp b/src/SamplingModulator.cpp index 7875b9a..b28bfdb 100644 --- a/src/SamplingModulator.cpp +++ b/src/SamplingModulator.cpp @@ -64,6 +64,14 @@ struct SamplingModulator : Module { configParam(FINE_PARAM, 0.f, 1.f, 0.f, "Fine tune"); configSwitch(INT_EXT_PARAM, 0.f, 1.f, CLOCK_INTERNAL, "Clock", {"External", "Internal"}); + configInput(SYNC_INPUT, "Sync"); + configInput(VOCT_INPUT, "V/Oct"); + configInput(HOLD_INPUT, "Hold"); + configInput(IN_INPUT, "Raw"); + configOutput(CLOCK_OUTPUT, "Clock"); + configOutput(TRIGG_OUTPUT, "Trigger"); + configOutput(OUT_OUTPUT, "Sampled"); + for (int i = 0; i < numSteps; i++) { configSwitch(STEP_PARAM + i, 0.f, 2.f, STATE_ON, string::f("Step %d", i + 1), {"Reset", "Off", "On"}); } diff --git a/src/SlewLimiter.cpp b/src/SlewLimiter.cpp index f6c5e08..434183e 100644 --- a/src/SlewLimiter.cpp +++ b/src/SlewLimiter.cpp @@ -31,6 +31,9 @@ struct SlewLimiter : Module { configInput(RISE_INPUT, "Rise CV"); configInput(FALL_INPUT, "Fall CV"); + configInput(IN_INPUT, "In"); + + configOutput(OUT_OUTPUT, "Out"); } void process(const ProcessArgs& args) override { diff --git a/src/SpringReverb.cpp b/src/SpringReverb.cpp index 812ee68..58fb766 100644 --- a/src/SpringReverb.cpp +++ b/src/SpringReverb.cpp @@ -66,6 +66,15 @@ struct SpringReverb : Module { configParam(LEVEL2_PARAM, 0.0, 1.0, 0.0, "In 2 level", "%", 0, 100); configParam(HPF_PARAM, 0.0, 1.0, 0.5, "High pass filter cutoff"); + configInput(CV1_INPUT, "CV 1"); + configInput(CV2_INPUT, "CV 2"); + configInput(IN1_INPUT, "In 1"); + configInput(IN2_INPUT, "In 2"); + configInput(MIX_CV_INPUT, "Mix CV"); + + configOutput(MIX_OUTPUT, "Mix"); + configOutput(WET_OUTPUT, "Wet"); + initIR(); convolver = new dsp::RealTimeConvolver(BLOCK_SIZE); diff --git a/src/Voltio.cpp b/src/Voltio.cpp index bba5c39..469e246 100644 --- a/src/Voltio.cpp +++ b/src/Voltio.cpp @@ -33,7 +33,7 @@ struct Voltio : Module { semitonesParam->snapEnabled = true; configInput(SUM_INPUT, "Sum"); - configOutput(OUT_OUTPUT, ""); + configOutput(OUT_OUTPUT, "Main"); } void process(const ProcessArgs& args) override {