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:
parent
1de392bbab
commit
e1da55ccc7
3 changed files with 233 additions and 163 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue