From beff6d119093902a8c606764c50cec7b730b4595 Mon Sep 17 00:00:00 2001 From: rettinghaus Date: Sat, 21 Dec 2024 12:17:26 +0100 Subject: [PATCH] add test --- .../musicxml/tests/data/testOrnaments.xml | 342 +++++++++++++++++ .../tests/data/testOrnaments_ref.mscx | 351 ++++++++++++++++++ .../musicxml/tests/musicxml_tests.cpp | 3 + 3 files changed, 696 insertions(+) create mode 100644 src/importexport/musicxml/tests/data/testOrnaments.xml create mode 100755 src/importexport/musicxml/tests/data/testOrnaments_ref.mscx diff --git a/src/importexport/musicxml/tests/data/testOrnaments.xml b/src/importexport/musicxml/tests/data/testOrnaments.xml new file mode 100644 index 0000000000000..3b35a25ddfff4 --- /dev/null +++ b/src/importexport/musicxml/tests/data/testOrnaments.xml @@ -0,0 +1,342 @@ + + + + + Ornaments import test + + + Klaus Rettinghaus + + MuseScore 4.5.0 + 2024-12-19 + + + + + + + + + + Piano + Pno. + + Piano + + + + 1 + 1 + 78.7402 + 0 + + + + + + + 1 + + 0 + + + + F + 4 + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + + C + 3 + + 2 + 1 + half + up + + + + + + + + light-heavy + + + + diff --git a/src/importexport/musicxml/tests/data/testOrnaments_ref.mscx b/src/importexport/musicxml/tests/data/testOrnaments_ref.mscx new file mode 100755 index 0000000000000..5eaed73306cc8 --- /dev/null +++ b/src/importexport/musicxml/tests/data/testOrnaments_ref.mscx @@ -0,0 +1,351 @@ + + + + 480 + + 1 + 1 + 1 + 0 + 1 + + Klaus Rettinghaus + + 2024-12-21 + + + + xml + Apple Macintosh + + + + Ornaments import test + + + + stdNormal + + 3 + + Piano + + Piano + Pno. + Piano + 21 + 108 + 21 + 108 + keyboard.piano + F + + 100 + 95 + + + 100 + 33 + + + 100 + 50 + + + 100 + 67 + + + 100 + 100 + + + 120 + 67 + + + 150 + 100 + + + 150 + 50 + + + 120 + 50 + + + 120 + 100 + + + + + Fluid + + + + + + 10 + + + Ornaments import test + + + + Klaus Rettinghaus + + + + + + F + F + 1 + + + 4 + 4 + + + half + + ornamentTurn + + up + + 48 + 14 + + + + half + + ornamentTurnInverted + + up + + 48 + 14 + + + + + + + + half + + ornamentTrill + + up + + 48 + 14 + + + + half + + ornamentShortTrill + + up + + 48 + 14 + + + + + + + + half + + ornamentMordent + + up + + 48 + 14 + + + + half + + ornamentTurn + + up + + 48 + 14 + + + + + + + + half + + ornamentTremblement + + up + + 48 + 14 + + + + half + + ornamentPrallMordent + + up + + 48 + 14 + + + + + + + + half + + ornamentUpPrall + + up + + 48 + 14 + + + + half + + ornamentPrecompMordentUpperPrefix + + up + + 48 + 14 + + + + + + + + half + + ornamentDownMordent + + up + + 48 + 14 + + + + half + + ornamentPrallDown + + up + + 48 + 14 + + + + + + + + half + + ornamentPrallUp + + up + + 48 + 14 + + + + half + + ornamentPrecompMordentUpperPrefix + + up + + 48 + 14 + + + + + + + + half + + ornamentPrecompSlide + + up + + 48 + 14 + + + + half + + ornamentTrill + + up + + 48 + 14 + + + + + + + + half + + ornamentTremblementCouperin + + up + + 48 + 14 + + + + half + + ornamentPinceCouperin + + up + + 48 + 14 + + + + end + + + + + + diff --git a/src/importexport/musicxml/tests/musicxml_tests.cpp b/src/importexport/musicxml/tests/musicxml_tests.cpp index bcb503ae068ee..d830451d423f5 100644 --- a/src/importexport/musicxml/tests/musicxml_tests.cpp +++ b/src/importexport/musicxml/tests/musicxml_tests.cpp @@ -956,6 +956,9 @@ TEST_F(MusicXml_Tests, numberedLyrics) { TEST_F(MusicXml_Tests, numerals) { musicXmlIoTest("testNumerals"); } +TEST_F(MusicXml_Tests, ornaments) { + musicXmlImportTestRef("testOrnaments"); +} TEST_F(MusicXml_Tests, overlappingSpanners) { musicXmlIoTest("testOverlappingSpanners"); }