From bd6a5af03536f141cddf5297bd5cddb568a0ded6 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 22 Sep 2020 20:39:17 +0200 Subject: [PATCH] Update tests for new keycenter behavior --- tests/FilesT.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/FilesT.cpp b/tests/FilesT.cpp index 7f56511b..dbff1ba1 100644 --- a/tests/FilesT.cpp +++ b/tests/FilesT.cpp @@ -694,13 +694,15 @@ TEST_CASE("[Files] Key center from audio file") sample=root_key_62.wav sample=root_key_38.flac sample=root_key_62.flac + pitch_keycenter=10 sample=root_key_62.flac key=10 sample=root_key_62.flac )"); - REQUIRE(synth.getNumRegions() == 5); + REQUIRE(synth.getNumRegions() == 6); REQUIRE(synth.getRegionView(0)->pitchKeycenter == 38); REQUIRE(synth.getRegionView(1)->pitchKeycenter == 62); REQUIRE(synth.getRegionView(2)->pitchKeycenter == 38); REQUIRE(synth.getRegionView(3)->pitchKeycenter == 62); REQUIRE(synth.getRegionView(4)->pitchKeycenter == 10); + REQUIRE(synth.getRegionView(5)->pitchKeycenter == 62); }