Skip to content

Commit

Permalink
faderbank: allow 14-bit CCs on any valid pair
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Jan 18, 2025
1 parent 3ed831a commit 8bb1086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/faderbank/FaderbankModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ void FaderbankModule::processMIDIMessages(const ProcessArgs& args)
}
}

if (ccNum >= 32 && ccNum < 64)
if (ccNum >= 32)
{
// look for potential LSB CC of 14-bit CC 0-31
// look for potential LSB CC of 14-bit CC
key = (msg.getChannel() << 8) | (ccNum - 32);
iter = inputMap.find(key);
if (iter != inputMap.end())
Expand Down Expand Up @@ -124,7 +124,7 @@ void FaderbankModule::processMIDIMessages(const ProcessArgs& args)
{
uint16_t value;
bool updateable = false;
bool expect14bit = records[i].faderMode == FaderMode14bitCC && records[i].ccNum < 32;
bool expect14bit = records[i].faderMode == FaderMode14bitCC && records[i].ccNum < 96;

if (records[i].highValue != 0xFF)
{
Expand Down

0 comments on commit 8bb1086

Please sign in to comment.