Add connections unit test
This commit is contained in:
parent
7f2daa24e7
commit
de7c125c54
1 changed files with 17 additions and 0 deletions
|
|
@ -354,3 +354,20 @@ TEST_CASE("[Modulations] Aftertouch connections")
|
||||||
R"("ChannelAftertouch" -> "FilterCutoff {1, N=2}")",
|
R"("ChannelAftertouch" -> "FilterCutoff {1, N=2}")",
|
||||||
}, 2));
|
}, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("[Modulations] LFO v1 connections")
|
||||||
|
{
|
||||||
|
sfz::Synth synth;
|
||||||
|
synth.loadSfzString("/modulation.sfz", R"(
|
||||||
|
<region> sample=*sine amplfo_freq=1.0
|
||||||
|
<region> sample=*sine pitchlfo_freq=1.0
|
||||||
|
<region> sample=*sine fillfo_freq=1.0
|
||||||
|
)");
|
||||||
|
|
||||||
|
const std::string graph = synth.getResources().modMatrix.toDotGraph();
|
||||||
|
REQUIRE(graph == createDefaultGraph({
|
||||||
|
R"("AmplitudeLFO {0}" -> "Volume {0}")",
|
||||||
|
R"("PitchLFO {1}" -> "Pitch {1}")",
|
||||||
|
R"("FilterLFO {2}" -> "FilterCutoff {2, N=1}")",
|
||||||
|
}, 3));
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue