Browse Source

Update QuadMIDIToCVInterface.cpp

tags/v0.6.0
dllmusic GitHub 6 years ago
parent
commit
2162c08366
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Core/QuadMIDIToCVInterface.cpp

+ 2
- 1
src/Core/QuadMIDIToCVInterface.cpp View File

@@ -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);
}


Loading…
Cancel
Save