Skip to content

Commit 95ad8c4

Browse files
committed
utests for hidden measure musicxml import
1 parent 3ea0a16 commit 95ad8c4

File tree

2 files changed

+132
-0
lines changed

2 files changed

+132
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3+
<score-partwise version="3.1">
4+
<identification>
5+
<encoding>
6+
<software>MuseScore 3.6.2</software>
7+
<encoding-date>2023-02-14</encoding-date>
8+
<supports element="accidental" type="yes"/>
9+
<supports element="beam" type="yes"/>
10+
<supports element="print" attribute="new-page" type="no"/>
11+
<supports element="print" attribute="new-system" type="no"/>
12+
<supports element="stem" type="yes"/>
13+
</encoding>
14+
</identification>
15+
<part-list>
16+
<part-group type="start" number="1">
17+
<group-symbol>bracket</group-symbol>
18+
</part-group>
19+
<score-part id="P1">
20+
<part-name>Violin I</part-name>
21+
<score-instrument id="P1-I1">
22+
<instrument-name>Violin</instrument-name>
23+
</score-instrument>
24+
<midi-device id="P1-I1" port="1"></midi-device>
25+
<midi-instrument id="P1-I1">
26+
<midi-channel>1</midi-channel>
27+
<midi-program>41</midi-program>
28+
<volume>78.7402</volume>
29+
<pan>0</pan>
30+
</midi-instrument>
31+
</score-part>
32+
<score-part id="P2">
33+
<part-name>Violoncello</part-name>
34+
<score-instrument id="P2-I1">
35+
<instrument-name>Violoncello</instrument-name>
36+
</score-instrument>
37+
<midi-device id="P2-I1" port="1"></midi-device>
38+
<midi-instrument id="P2-I1">
39+
<midi-channel>11</midi-channel>
40+
<midi-program>43</midi-program>
41+
<volume>78.7402</volume>
42+
<pan>0</pan>
43+
</midi-instrument>
44+
</score-part>
45+
<part-group type="stop" number="1"/>
46+
</part-list>
47+
<part id="P1">
48+
<measure number="1">
49+
<attributes>
50+
<divisions>1</divisions>
51+
<key>
52+
<fifths>0</fifths>
53+
</key>
54+
<time>
55+
<beats>4</beats>
56+
<beat-type>4</beat-type>
57+
</time>
58+
<clef>
59+
<sign>G</sign>
60+
<line>2</line>
61+
</clef>
62+
</attributes>
63+
<note>
64+
<pitch>
65+
<step>G</step>
66+
<octave>4</octave>
67+
</pitch>
68+
<duration>4</duration>
69+
<voice>1</voice>
70+
<type>whole</type>
71+
</note>
72+
</measure>
73+
<measure number="2">
74+
<note>
75+
<pitch>
76+
<step>G</step>
77+
<octave>4</octave>
78+
</pitch>
79+
<duration>4</duration>
80+
<voice>1</voice>
81+
<type>whole</type>
82+
</note>
83+
<barline location="right">
84+
<bar-style>light-heavy</bar-style>
85+
</barline>
86+
</measure>
87+
</part>
88+
<part id="P2">
89+
<measure number="1">
90+
<attributes>
91+
<divisions>1</divisions>
92+
<key>
93+
<fifths>0</fifths>
94+
</key>
95+
<time>
96+
<beats>4</beats>
97+
<beat-type>4</beat-type>
98+
</time>
99+
<clef>
100+
<sign>F</sign>
101+
<line>4</line>
102+
</clef>
103+
<staff-details print-object="no"/>
104+
</attributes>
105+
<note>
106+
<rest measure="yes"/>
107+
<duration>4</duration>
108+
<voice>1</voice>
109+
</note>
110+
</measure>
111+
<measure number="2">
112+
<attributes>
113+
<staff-details print-object="yes"/>
114+
</attributes>
115+
<note>
116+
<pitch>
117+
<step>G</step>
118+
<octave>3</octave>
119+
</pitch>
120+
<duration>4</duration>
121+
<voice>1</voice>
122+
<type>whole</type>
123+
</note>
124+
<barline location="right">
125+
<bar-style>light-heavy</bar-style>
126+
</barline>
127+
</measure>
128+
</part>
129+
</score-partwise>

src/importexport/musicxml/tests/musicxml_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ TEST_F(Musicxml_Tests, helloReadWriteCompr) {
589589
TEST_F(Musicxml_Tests, hiddenStaves) {
590590
mxmlIoTest("testHiddenStaves");
591591
}
592+
TEST_F(Musicxml_Tests, hiddenMeasure) {
593+
mxmlIoTest("testHiddenMeasure");
594+
}
592595
TEST_F(Musicxml_Tests, implicitMeasure1) {
593596
mxmlIoTest("testImplicitMeasure1");
594597
}

0 commit comments

Comments
 (0)