|
|
@@ -258,8 +258,9 @@ struct QuadMIDIToCVInterface : Module { |
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
|
uint8_t lastNote = notes[i]; |
|
|
|
uint8_t lastGate = ((gates[i] || pedalgates[i]) && (!(reTrigger[i].process(engineGetSampleTime())))); |
|
|
|
outputs[CV_OUTPUT + i].value = (lastNote - 60) / 12.f; |
|
|
|
outputs[GATE_OUTPUT + i].value = gates[i] ? 10.f : 0.f; |
|
|
|
outputs[GATE_OUTPUT + i].value = lastGate ? 10.f : 0.f; |
|
|
|
outputs[VELOCITY_OUTPUT + i].value = rescale(noteData[lastNote].velocity, 0, 127, 0.f, 10.f); |
|
|
|
outputs[AFTERTOUCH_OUTPUT + i].value = rescale(noteData[lastNote].aftertouch, 0, 127, 0.f, 10.f); |
|
|
|
} |
|
|
|