Check for extended CC support in the midi state

This commit is contained in:
Paul Ferrand 2019-12-17 12:35:17 +01:00
parent 85e6ccd81f
commit 03645bd54f

View file

@ -93,4 +93,11 @@ TEST_CASE("[MidiState] Set and get note velocities")
state.noteOnEvent(0, 64, 123);
REQUIRE(+state.getNoteVelocity(0, 64) == 123);
REQUIRE(+state.getNoteVelocity(15, 64) == 0);
}
TEST_CASE("[MidiState] Extended CCs")
{
sfz::MidiState state;
REQUIRE(state.getCCArray(1).size() >= 142);
state.ccEvent(6, 142, 64); // should not trap
}