diff --git a/tests/FilesT.cpp b/tests/FilesT.cpp index c3b6d473..7e0e0520 100644 --- a/tests/FilesT.cpp +++ b/tests/FilesT.cpp @@ -409,6 +409,15 @@ TEST_CASE("[Files] Set HDCC applies properly") REQUIRE(midiState.getCCValue(61) == Approx(0.1234)); } +TEST_CASE("[Files] Set RealCC applies properly") +{ + sfz::Synth synth; + const auto& midiState = synth.getResources().midiState; + synth.loadSfzFile(fs::current_path() / "tests/TestFiles/set_realcc.sfz"); + REQUIRE(midiState.getCCValue(142) == Approx(0.5678)); + REQUIRE(midiState.getCCValue(61) == Approx(0.1234)); +} + TEST_CASE("[Files] Note and octave offsets") { sfz::Synth synth; diff --git a/tests/TestFiles/set_realcc.sfz b/tests/TestFiles/set_realcc.sfz new file mode 100644 index 00000000..8ce9221d --- /dev/null +++ b/tests/TestFiles/set_realcc.sfz @@ -0,0 +1,3 @@ + set_realcc61=0.1234 + set_realcc142=0.5678 + sample=snare.wav