diff --git a/tests/ModulationsT.cpp b/tests/ModulationsT.cpp index 72c38cb6..516a34ae 100644 --- a/tests/ModulationsT.cpp +++ b/tests/ModulationsT.cpp @@ -354,3 +354,20 @@ TEST_CASE("[Modulations] Aftertouch connections") R"("ChannelAftertouch" -> "FilterCutoff {1, N=2}")", }, 2)); } + +TEST_CASE("[Modulations] LFO v1 connections") +{ + sfz::Synth synth; + synth.loadSfzString("/modulation.sfz", R"( + sample=*sine amplfo_freq=1.0 + sample=*sine pitchlfo_freq=1.0 + 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)); +}