Release test errors
This commit is contained in:
parent
f62b1ba834
commit
16e32f0bd1
2 changed files with 4 additions and 2 deletions
|
|
@ -1546,9 +1546,11 @@ bool sfz::Region::registerNoteOff(int noteNumber, float velocity, float randValu
|
|||
return false;
|
||||
}
|
||||
|
||||
#include<iostream>
|
||||
bool sfz::Region::registerCC(int ccNumber, float ccValue) noexcept
|
||||
{
|
||||
ASSERT(ccValue >= 0.0f && ccValue <= 1.0f);
|
||||
|
||||
if (ccConditions.getWithDefault(ccNumber).containsWithEnd(ccValue))
|
||||
ccSwitched.set(ccNumber, true);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ TEST_CASE("Region activation", "Region tests")
|
|||
REQUIRE(!region.isSwitchedOn());
|
||||
region.registerCC(54, 19_norm);
|
||||
REQUIRE(region.isSwitchedOn());
|
||||
region.registerCC(54, 18_norm);
|
||||
REQUIRE(region.isSwitchedOn());
|
||||
region.registerCC(54, 17_norm);
|
||||
REQUIRE(!region.isSwitchedOn());
|
||||
region.registerCC(54, 27_norm);
|
||||
REQUIRE(region.isSwitchedOn());
|
||||
region.registerCC(4, 56_norm);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue