From 5e30ceb48826a08614005d8e68d1737bc74eee72 Mon Sep 17 00:00:00 2001 From: rettinghaus Date: Mon, 23 Dec 2024 22:22:23 +0100 Subject: [PATCH] add test --- .../tests/data/testNoteheadNames.mscx | 594 ++++++++++++++ .../tests/data/testNoteheadNames_ref.xml | 747 ++++++++++++++++++ .../musicxml/tests/musicxml_tests.cpp | 3 + 3 files changed, 1344 insertions(+) create mode 100755 src/importexport/musicxml/tests/data/testNoteheadNames.mscx create mode 100644 src/importexport/musicxml/tests/data/testNoteheadNames_ref.xml diff --git a/src/importexport/musicxml/tests/data/testNoteheadNames.mscx b/src/importexport/musicxml/tests/data/testNoteheadNames.mscx new file mode 100755 index 0000000000000..a88a8e1f0d698 --- /dev/null +++ b/src/importexport/musicxml/tests/data/testNoteheadNames.mscx @@ -0,0 +1,594 @@ + + + + 480 + 1 + 1 + 1 + 0 + + + Klaus Rettinghaus + + + + + + + + + + + Notehead names + + Orchestra + + Stimmen + +
+ flutes + oboes + clarinets + saxophones + bassoons + +
+
+ horns + trumpets + cornets + flugelhorns + trombones + tubas + +
+
+ timpani +
+
+ keyboard-percussion + + drums + unpitched-metal-percussion + unpitched-wooden-percussion + other-percussion + +
+ keyboards + harps + organs + synths + + +
+ voices + voice-groups +
+
+ orchestral-strings +
+
+ + + + stdNormal + + + Voice + + Voice + Vo. + Voice + 38 + 84 + 41 + 79 + voice.vocals + + + Fluid + + + + + + 5 + 0 + + + Notehead names + + + + + + 4 + 4 + + + quarter + + 60 + 14 + name-pitch + + + + quarter + + 62 + 16 + name-pitch + + + + quarter + + 64 + 18 + name-pitch + + + + quarter + + 65 + 13 + name-pitch + + + + + + + + quarter + + 67 + 15 + name-pitch + + + + quarter + + 69 + 17 + name-pitch + + + + quarter + + 71 + 19 + name-pitch + + + + quarter + + 72 + 14 + name-pitch + + + + + + + + quarter + + 64 + 18 + name-pitch + + + + quarter + + + accidentalSharp + + 66 + 20 + name-pitch + + + + quarter + + + accidentalSharp + + 68 + 22 + name-pitch + + + + quarter + + 69 + 17 + name-pitch + + + + + + + + quarter + + 71 + 19 + name-pitch + + + + quarter + + + accidentalSharp + + 73 + 21 + name-pitch + + + + quarter + + + accidentalSharp + + 75 + 23 + name-pitch + + + + quarter + + 76 + 18 + name-pitch + + + + double + + + + + + + quarter + + 60 + 14 + solfege-fixed + + + + quarter + + 62 + 16 + solfege-fixed + + + + quarter + + 64 + 18 + solfege-fixed + + + + quarter + + 65 + 13 + solfege-fixed + + + + + + + + quarter + + 67 + 15 + solfege-fixed + + + + quarter + + 69 + 17 + solfege-fixed + + + + quarter + + 71 + 19 + solfege-fixed + + + + quarter + + 72 + 14 + solfege-fixed + + + + + + + + quarter + + + accidentalSharp + + 61 + 21 + solfege-movable + + + + quarter + + + accidentalFlat + + 61 + 9 + solfege-movable + + + + quarter + + + accidentalSharp + + 63 + 23 + solfege-movable + + + + quarter + + + accidentalFlat + + 63 + 11 + solfege-movable + + + + + + + + quarter + + + accidentalSharp + + 66 + 20 + solfege-movable + + + + quarter + + + accidentalFlat + + 66 + 8 + solfege-movable + + + + quarter + + + accidentalSharp + + 70 + 24 + solfege-movable + + + + quarter + + + accidentalFlat + + 70 + 12 + solfege-movable + + + + double + + + + + + + quarter + + 60 + 14 + name-pitch-german + + + + quarter + + 62 + 16 + name-pitch-german + + + + quarter + + 64 + 18 + name-pitch-german + + + + quarter + + 65 + 13 + name-pitch-german + + + + + + + + quarter + + 67 + 15 + name-pitch-german + + + + quarter + + 69 + 17 + name-pitch-german + + + + quarter + + 71 + 19 + name-pitch-german + + + + quarter + + 72 + 14 + name-pitch-german + + + + + + + + quarter + + + accidentalFlat + + 63 + 11 + name-pitch-german + + + + quarter + + 65 + 13 + name-pitch-german + + + + quarter + + 67 + 15 + name-pitch-german + + + + quarter + + + accidentalFlat + + 68 + 10 + name-pitch-german + + + + + + + + quarter + + + accidentalFlat + + 70 + 12 + name-pitch-german + + + + quarter + + 72 + 14 + name-pitch-german + + + + quarter + + 74 + 16 + name-pitch-german + + + + quarter + + + accidentalFlat + + 75 + 11 + name-pitch-german + + + + + +
+
diff --git a/src/importexport/musicxml/tests/data/testNoteheadNames_ref.xml b/src/importexport/musicxml/tests/data/testNoteheadNames_ref.xml new file mode 100644 index 0000000000000..bfb181dc8887a --- /dev/null +++ b/src/importexport/musicxml/tests/data/testNoteheadNames_ref.xml @@ -0,0 +1,747 @@ + + + + + Notehead names + + + Klaus Rettinghaus + + MuseScore 0.7.0 + 2007-09-10 + + + + + + + + + + Voice + Vo. + + Voice + + + + 1 + 53 + 78.7402 + 0 + + + + + + + 1 + + 0 + + + + G + 2 + + + + + C + 4 + + 1 + 1 + quarter + up + + C + + + + + D + 4 + + 1 + 1 + quarter + up + + D + + + + + E + 4 + + 1 + 1 + quarter + up + + E + + + + + F + 4 + + 1 + 1 + quarter + up + + F + + + + + + + G + 4 + + 1 + 1 + quarter + up + + G + + + + + A + 4 + + 1 + 1 + quarter + up + + A + + + + + B + 4 + + 1 + 1 + quarter + down + + B + + + + + C + 5 + + 1 + 1 + quarter + down + + C + + + + + + + E + 4 + + 1 + 1 + quarter + up + + E + + + + + F + 1 + 4 + + 1 + 1 + quarter + sharp + up + + F + sharp + + + + + G + 1 + 4 + + 1 + 1 + quarter + sharp + up + + G + sharp + + + + + A + 4 + + 1 + 1 + quarter + up + + A + + + + + + + B + 4 + + 1 + 1 + quarter + down + + B + + + + + C + 1 + 5 + + 1 + 1 + quarter + sharp + down + + C + sharp + + + + + D + 1 + 5 + + 1 + 1 + quarter + sharp + down + + D + sharp + + + + + E + 5 + + 1 + 1 + quarter + down + + E + + + + light-light + + + + + + C + 4 + + 1 + 1 + quarter + up + + Do + + + + + D + 4 + + 1 + 1 + quarter + up + + Re + + + + + E + 4 + + 1 + 1 + quarter + up + + Mi + + + + + F + 4 + + 1 + 1 + quarter + up + + Fa + + + + + + + G + 4 + + 1 + 1 + quarter + up + + So + + + + + A + 4 + + 1 + 1 + quarter + up + + La + + + + + B + 4 + + 1 + 1 + quarter + down + + Si + + + + + C + 5 + + 1 + 1 + quarter + down + + Do + + + + + + + C + 1 + 4 + + 1 + 1 + quarter + sharp + up + + Di + + + + + D + -1 + 4 + + 1 + 1 + quarter + flat + up + + Ra + + + + + D + 1 + 4 + + 1 + 1 + quarter + sharp + up + + Ri + + + + + E + -1 + 4 + + 1 + 1 + quarter + flat + up + + Me + + + + + + + F + 1 + 4 + + 1 + 1 + quarter + sharp + up + + Fi + + + + + G + -1 + 4 + + 1 + 1 + quarter + flat + up + + Se + + + + + A + 1 + 4 + + 1 + 1 + quarter + sharp + up + + Li + + + + + B + -1 + 4 + + 1 + 1 + quarter + flat + down + + Te + + + + light-light + + + + + + C + 4 + + 1 + 1 + quarter + up + + C + + + + + D + 4 + + 1 + 1 + quarter + up + + D + + + + + E + 4 + + 1 + 1 + quarter + up + + E + + + + + F + 4 + + 1 + 1 + quarter + up + + F + + + + + + + G + 4 + + 1 + 1 + quarter + up + + G + + + + + A + 4 + + 1 + 1 + quarter + up + + A + + + + + B + 4 + + 1 + 1 + quarter + down + + H + + + + + C + 5 + + 1 + 1 + quarter + down + + C + + + + + + + E + -1 + 4 + + 1 + 1 + quarter + flat + up + + E + flat + + + + + F + 4 + + 1 + 1 + quarter + up + + F + + + + + G + 4 + + 1 + 1 + quarter + up + + G + + + + + A + -1 + 4 + + 1 + 1 + quarter + flat + up + + A + flat + + + + + + + B + -1 + 4 + + 1 + 1 + quarter + flat + down + + B + + + + + C + 5 + + 1 + 1 + quarter + down + + C + + + + + D + 5 + + 1 + 1 + quarter + down + + D + + + + + E + -1 + 5 + + 1 + 1 + quarter + flat + down + + E + flat + + + + light-heavy + + + + diff --git a/src/importexport/musicxml/tests/musicxml_tests.cpp b/src/importexport/musicxml/tests/musicxml_tests.cpp index 439a9461efc5c..8dd21c0f4733f 100644 --- a/src/importexport/musicxml/tests/musicxml_tests.cpp +++ b/src/importexport/musicxml/tests/musicxml_tests.cpp @@ -935,6 +935,9 @@ TEST_F(MusicXml_Tests, DISABLED_noteAttributes4) { TEST_F(MusicXml_Tests, noteColor) { musicXmlIoTest("testNoteColor"); } +TEST_F(MusicXml_Tests, noteheadNames) { + musicXmlMscxExportTestRef("testNoteheadNames"); +} TEST_F(MusicXml_Tests, noteheadParentheses) { musicXmlIoTest("testNoteheadParentheses"); }