1
0
Fork 0
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:
reuk 2024-01-17 14:27:26 +00:00
parent 0637f78bf6
commit 27828bd787
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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);
}
}
};