Check for extended CC support in the midi state
This commit is contained in:
parent
85e6ccd81f
commit
03645bd54f
1 changed files with 7 additions and 0 deletions
|
|
@ -93,4 +93,11 @@ TEST_CASE("[MidiState] Set and get note velocities")
|
||||||
state.noteOnEvent(0, 64, 123);
|
state.noteOnEvent(0, 64, 123);
|
||||||
REQUIRE(+state.getNoteVelocity(0, 64) == 123);
|
REQUIRE(+state.getNoteVelocity(0, 64) == 123);
|
||||||
REQUIRE(+state.getNoteVelocity(15, 64) == 0);
|
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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue