computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit 5b7edf29c524c6c74960c84f09556d73b47f30bd
parent 04827b1125440389488ffe4ecb4966298fa3d952
Author: Adam M <aemalone@gmail.com>
Date:   Wed,  1 Dec 2021 22:16:38 -0600

pouter output 0v for when routing is greater than input channels not knob

Diffstat:
Msrc/ComputerscareRolyPouter.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ComputerscareRolyPouter.cpp b/src/ComputerscareRolyPouter.cpp @@ -118,7 +118,7 @@ struct ComputerscareRolyPouter : ComputerscarePolyModule { knobSetting = std::round(inputs[ROUTING_CV].getVoltage(cvChannels == 1 ? 0 : i) * 1.5) + 1; routing[i] = (knobSetting + 16 * 4 - 1) % 16; - if (knobSetting > inputChannels) { + if (routing[i] > inputChannels) { outputs[POLY_OUTPUT].setVoltage(0, i); } else {