1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MidiRPN: Adjust MSB and LSB order for improved conformance to the MIDI 1.0 spec

This commit is contained in:
reuk 2023-04-19 13:27:30 +01:00
parent 1de392bbab
commit e1da55ccc7
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
3 changed files with 233 additions and 163 deletions

View file

@ -108,14 +108,11 @@ void MPEZoneLayout::processNextMidiEvent (const MidiMessage& message)
if (! message.isController())
return;
MidiRPNMessage rpn;
if (rpnDetector.parseControllerMessage (message.getChannel(),
if (auto parsed = rpnDetector.tryParse (message.getChannel(),
message.getControllerNumber(),
message.getControllerValue(),
rpn))
message.getControllerValue()))
{
processRpnMessage (rpn);
processRpnMessage (*parsed);
}
}