Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions MidiDriverBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,15 @@ void MidiDriverBase::parseDataEntryLSB(int ch, int value)
//-----------------------------------------------------------------------------
void MidiDriverBase::parseDataEntryMSB(int ch, int value)
{
mChStat[ch].dataEntryValue &= 0x00ff;
mChStat[ch].dataEntryValue |= (value & 0x7f) << 8;
mChStat[ch].dataEntryValue &= 0x007f;
//inverts lower bits when negative
if (value > 0x3f)
{
mChStat[ch].dataEntryValue = 0x7f - mChStat[ch].dataEntryValue;
}
//set highest bit only
mChStat[ch].dataEntryValue |= (value & 0x40) << 1;
handleDataEntryValueChange(ch, mChStat[ch].isSettingNRPN, mChStat[ch].isSettingNRPN ? mChStat[ch].nrpn : mChStat[ch].rpn, mChStat[ch].dataEntryValue);
}

//-----------------------------------------------------------------------------
Expand Down
Binary file modified dist/win/x64/C700.dll
Binary file not shown.
Binary file modified dist/win/x86/C700.dll
Binary file not shown.