Add test
This commit is contained in:
parent
95d3343341
commit
aa29e1a411
1 changed files with 29 additions and 0 deletions
|
|
@ -1394,3 +1394,32 @@ TEST_CASE("[Synth] Default ampeg_release")
|
||||||
|
|
||||||
REQUIRE(synth.getRegionView(0)->amplitudeEG.release > 0.0005f);
|
REQUIRE(synth.getRegionView(0)->amplitudeEG.release > 0.0005f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("[Synth] Send CC vs. Automate CC")
|
||||||
|
{
|
||||||
|
{
|
||||||
|
sfz::Synth synth;
|
||||||
|
|
||||||
|
synth.loadSfzString(fs::current_path() / "send_cc.sfz", R"(
|
||||||
|
<region> sample=*sine
|
||||||
|
)");
|
||||||
|
|
||||||
|
synth.noteOn(0, 60, 100);
|
||||||
|
synth.hdcc(1, 120, 0.0f);
|
||||||
|
|
||||||
|
REQUIRE(synth.getNumActiveVoices() == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
sfz::Synth synth;
|
||||||
|
|
||||||
|
synth.loadSfzString(fs::current_path() / "automate_cc.sfz", R"(
|
||||||
|
<region> sample=*sine
|
||||||
|
)");
|
||||||
|
|
||||||
|
synth.noteOn(0, 60, 100);
|
||||||
|
synth.automateHdcc(1, 120, 0.0f);
|
||||||
|
|
||||||
|
REQUIRE(synth.getNumActiveVoices() == 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue