diff options
author | Robin Gareus <robin@gareus.org> | 2017-12-13 23:11:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-12-13 23:11:37 +0100 |
commit | 26a59261fe3faa6f6c02216ce9b78ae667971774 (patch) | |
tree | a51a54473fe7842ea5bff7b17b3ee59f36a4b9cf /libs/surfaces/faderport8 | |
parent | ae0dd7c209072d8deca84df7ab8788a73c98a840 (diff) |
Fix FP16 fader-touch release for faders 9..16
Diffstat (limited to 'libs/surfaces/faderport8')
-rw-r--r-- | libs/surfaces/faderport8/faderport8.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaces/faderport8/faderport8.cc b/libs/surfaces/faderport8/faderport8.cc index 94fe52b78c..6f84489ba9 100644 --- a/libs/surfaces/faderport8/faderport8.cc +++ b/libs/surfaces/faderport8/faderport8.cc @@ -649,7 +649,12 @@ FaderPort8::note_off_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb) { debug_2byte_msg ("OF", tb->note_number, tb->velocity); - if (tb->note_number >= 0x68 && tb->note_number <= 0x6f) { +#ifdef FaderPort16 + static const uint8_t touch_id_uppper = 0x77; +#else + static const uint8_t touch_id_uppper = 0x6f; +#endif + if (tb->note_number >= 0x68 && tb->note_number <= touch_id_uppper) { // fader touch _ctrls.midi_touch (tb->note_number - 0x68, tb->velocity); return; |