From 03645bd54f3dbfe7874a24fa50e3d5f0f541f7bc Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 17 Dec 2019 12:35:17 +0100 Subject: [PATCH] Check for extended CC support in the midi state --- tests/MidiStateT.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/MidiStateT.cpp b/tests/MidiStateT.cpp index 0498a884..dba6fffc 100644 --- a/tests/MidiStateT.cpp +++ b/tests/MidiStateT.cpp @@ -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 } \ No newline at end of file