commit 096f011c3b1c769bb893af91995db460e5190ba1 parent 5c83c2c2fc4701f6046c5674a28edee89f2038cb Author: Adam Malone <1319733+freddyz@users.noreply.github.com> Date: Wed, 10 Jul 2019 08:52:56 -0500 more broken Pequencer Diffstat:
M | src/ComputerscareSolyPequencer.cpp | | | 13 | ++++++++----- |
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/ComputerscareSolyPequencer.cpp b/src/ComputerscareSolyPequencer.cpp @@ -49,11 +49,11 @@ struct ComputerscareSolyPequencer : Module { void process(const ProcessArgs &args) override { int numInput = inputs[POLY_INPUT].getChannels(); int numReset = inputs[RESET_INPUT].getChannels(); - if (inputs[CLOCK_INPUT].isConnected()) { - - //if (clockTriggers[0]) { - - int numClock = inputs[CLOCK_INPUT].getChannels(); + int numClock = inputs[CLOCK_INPUT].getChannels(); + int numNumSteps = inputs[NUM_STEPS_INPUT].getChannels(); + int numOutputChannels = numClock > 0 ? numClock : 1; + if (numClock > 0) { + outputs[POLY_OUTPUT].setChannels(numClock); for (int j = 0; j < numClock; j++) { if(clockTriggers[j].process(inputs[CLOCK_INPUT].getVoltage(j))) { @@ -64,6 +64,9 @@ struct ComputerscareSolyPequencer : Module { } } } + for(int c = 0; c < numOutputChannels; c++) { + outputs[POLY_OUTPUT].setVoltage(inputs[POLY_INPUT].getVoltage(currentStep[c]),c); + } //} // Run /*