diff --git a/src/Core/MIDICCToCVInterface.cpp b/src/Core/MIDICCToCVInterface.cpp index e01b7bd2..b581d598 100644 --- a/src/Core/MIDICCToCVInterface.cpp +++ b/src/Core/MIDICCToCVInterface.cpp @@ -90,14 +90,11 @@ struct MIDICCToCVInterface : Module { } void processMessage(MidiMessage msg) { - // debug("MIDI: %01x %01x %02x %02x", msg.status(), msg.channel(), msg.data1, msg.data2); - + debug("MIDI: %01x %01x %02x %02x", msg.status(), msg.channel(), msg.data1, msg.data2); switch (msg.status()) { // cc case 0xb: { - uint8_t cc = msg.data1 & 0x7f; - uint8_t cv = msg.data2 & 0x7f; - cvs[cc] = cv; + cvs[msg.note()] = msg.value(); } break; default: break; }