From 2ae4a93c1de5ca5ff29b778ac03a124cec1fb63e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 15 Jun 2019 14:31:36 -0400 Subject: [PATCH] Use the correct byte for channel pressure MIDI messages in MIDI-CV. --- src/Core/MIDI_CV.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/MIDI_CV.cpp b/src/Core/MIDI_CV.cpp index 46435404..db6faa28 100644 --- a/src/Core/MIDI_CV.cpp +++ b/src/Core/MIDI_CV.cpp @@ -180,12 +180,12 @@ struct MIDI_CV : Module { case 0xd: { if (polyMode == MPE_MODE) { // Set the channel aftertouch - aftertouches[msg.getChannel()] = msg.getValue(); + aftertouches[msg.getChannel()] = msg.getNote(); } else { // Set all aftertouches for (int c = 0; c < 16; c++) { - aftertouches[c] = msg.getValue(); + aftertouches[c] = msg.getNote(); } } } break;