computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit e19aff8de1f396e33f29feb5b7d197ab8460b903
parent 4ca271047321527fcf80a1bf39b39bab6d522a51
Author: Adam M <[email protected]>
Date:   Tue, 14 Apr 2020 23:31:58 -0500

lol peas do poly right

Diffstat:
Msrc/ComputerscareOhPeas.cpp | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/ComputerscareOhPeas.cpp b/src/ComputerscareOhPeas.cpp @@ -15,9 +15,6 @@ const int numChannels = 4; struct ComputerscareOhPeas; - - - struct ComputerscareOhPeas : Module { enum ParamIds @@ -169,18 +166,17 @@ void ComputerscareOhPeas::process(const ProcessArgs &args) a = params[SCALE_VAL + i].getValue(); b = params[SCALE_TRIM + i].getValue(); - B = inputs[SCALE_CV + i].getVoltage(ch); + B = inputs[SCALE_CV + i].getVoltage(numScaleCVChannels == 1 ? 0 : ch); A = inputs[CHANNEL_INPUT + i].getVoltage(ch); c = params[OFFSET_TRIM + i].getValue(); - C = inputs[OFFSET_CV + i].getVoltage(ch); + C = inputs[OFFSET_CV + i].getVoltage(numOffsetCVChannels == 1 ? 0 : ch); d = params[OFFSET_VAL + i].getValue(); D = (b * B + a) * A + (c * C + d); Q = quant.quantizeEven(D, iTranspose); - outputs[SCALED_OUTPUT + i].setVoltage(D, ch); outputs[QUANTIZED_OUTPUT + i].setVoltage(Q, ch); }