mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
MPEZoneLayout: Add test to verify behaviour of RPNs
This commit is contained in:
parent
0637f78bf6
commit
27828bd787
1 changed files with 11 additions and 0 deletions
|
|
@ -381,6 +381,17 @@ public:
|
|||
expectEquals (layout.getLowerZone().numMemberChannels, 3);
|
||||
expectEquals (layout.getLowerZone().perNotePitchbendRange, 48);
|
||||
expectEquals (layout.getLowerZone().masterPitchbendRange, 2);
|
||||
|
||||
const auto masterPitchBend = 0x0c;
|
||||
layout.processNextMidiEvent ({ 0xb0, 0x64, 0x00 });
|
||||
layout.processNextMidiEvent ({ 0xb0, 0x06, masterPitchBend });
|
||||
|
||||
expectEquals (layout.getLowerZone().masterPitchbendRange, masterPitchBend);
|
||||
|
||||
const auto newPitchBend = 0x0d;
|
||||
layout.processNextMidiEvent ({ 0xb0, 0x06, newPitchBend });
|
||||
|
||||
expectEquals (layout.getLowerZone().masterPitchbendRange, newPitchBend);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue