Browse Source

MIDI-CC debugging

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
7fdb1b0cd0
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/Core/MIDICCToCVInterface.cpp

+ 2
- 5
src/Core/MIDICCToCVInterface.cpp View File

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


Loading…
Cancel
Save