commit c055287d9c30fd46e870a7127d6956d55bd2c9ea
parent 1e2c415d6a750e7bb14084252169c966878470ff
Author: Adam M <aemalone@gmail.com>
Date: Sat, 27 Nov 2021 09:10:25 -0600
fix roly pouter channel mapping
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ComputerscareRolyPouter.cpp b/src/ComputerscareRolyPouter.cpp
@@ -117,7 +117,7 @@ struct ComputerscareRolyPouter : ComputerscarePolyModule {
for (int i = 0; i < numOutputChannels; i++) {
knobSetting = std::round(inputs[ROUTING_CV].getVoltage(cvChannels == 1 ? 0 : i) * 1.5) + 1;
- routing[i] = (knobSetting + 16 * 4 - 1) % 16 + 1;
+ routing[i] = (knobSetting + 16 * 4 - 1) % 16;
if (knobSetting > inputChannels) {
outputs[POLY_OUTPUT].setVoltage(0, i);
}
@@ -130,7 +130,7 @@ struct ComputerscareRolyPouter : ComputerscarePolyModule {
//printf("%f \n",random::uniform());
counter = 0;
for (int i = 0; i < numKnobs; i++) {
- routing[i] = (int)params[KNOB + i].getValue();
+ routing[i] = (int)params[KNOB + i].getValue() - 1;
}
}
@@ -162,7 +162,7 @@ struct PouterSmallDisplay : SmallLetterDisplay
{
if (module)
{
- std::string str = std::to_string(module->routing[ch]);
+ std::string str = std::to_string(module->routing[ch] + 1);
if (module->numInputChannels > 0 && (module->routing[ch] > module->numInputChannels)) {
textColor = outOfBoundsColor;
}