Update tests for new keycenter behavior
This commit is contained in:
parent
c5a1d04fb7
commit
bd6a5af035
1 changed files with 3 additions and 1 deletions
|
|
@ -694,13 +694,15 @@ TEST_CASE("[Files] Key center from audio file")
|
||||||
<region> sample=root_key_62.wav
|
<region> sample=root_key_62.wav
|
||||||
<region> sample=root_key_38.flac
|
<region> sample=root_key_38.flac
|
||||||
<region> sample=root_key_62.flac
|
<region> sample=root_key_62.flac
|
||||||
|
<region> pitch_keycenter=10 sample=root_key_62.flac
|
||||||
<region> key=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(0)->pitchKeycenter == 38);
|
||||||
REQUIRE(synth.getRegionView(1)->pitchKeycenter == 62);
|
REQUIRE(synth.getRegionView(1)->pitchKeycenter == 62);
|
||||||
REQUIRE(synth.getRegionView(2)->pitchKeycenter == 38);
|
REQUIRE(synth.getRegionView(2)->pitchKeycenter == 38);
|
||||||
REQUIRE(synth.getRegionView(3)->pitchKeycenter == 62);
|
REQUIRE(synth.getRegionView(3)->pitchKeycenter == 62);
|
||||||
REQUIRE(synth.getRegionView(4)->pitchKeycenter == 10);
|
REQUIRE(synth.getRegionView(4)->pitchKeycenter == 10);
|
||||||
|
REQUIRE(synth.getRegionView(5)->pitchKeycenter == 62);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue