Mercurial > hg > touchkeys
changeset 30:f2797a9d3d20
Fix a kludge that disrupted transmission of damper pedal messages.
author | Andrew McPherson <andrewm@eecs.qmul.ac.uk> |
---|---|
date | Sat, 08 Mar 2014 16:27:09 +0000 |
parents | f3efbf2984c3 |
children | 88287c1c2c92 |
files | Source/TouchKeys/MidiKeyboardSegment.cpp |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Source/TouchKeys/MidiKeyboardSegment.cpp Mon Mar 03 00:37:35 2014 +0000 +++ b/Source/TouchKeys/MidiKeyboardSegment.cpp Sat Mar 08 16:27:09 2014 +0000 @@ -943,15 +943,8 @@ oscMidiConverters_[controllerNumber]->resend(message.getChannel() - 1); } else { - // KLUDGE - if(controllerNumber == 64) { - MidiMessage newMessage = MidiMessage::controllerEvent(message.getChannel(), 67, 127 - message.getControllerValue()); - midiOutputController_->sendMessage(outputPortNumber_, newMessage); - } - else { - // Send this control change through unchanged - midiOutputController_->sendMessage(outputPortNumber_, message); - } + // Send this control change through unchanged + midiOutputController_->sendMessage(outputPortNumber_, message); } } else if(controllerActions_[controllerNumber] == kControlActionBroadcast) {