Update tests for new keycenter behavior

This commit is contained in:
Jean Pierre Cimalando 2020-09-22 20:39:17 +02:00
parent c5a1d04fb7
commit bd6a5af035

View file

@ -694,13 +694,15 @@ TEST_CASE("[Files] Key center from audio file")
<region> sample=root_key_62.wav
<region> sample=root_key_38.flac
<region> sample=root_key_62.flac
<region> pitch_keycenter=10 sample=root_key_62.flac
<region> 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);
}