]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Add test case for directions in the middle of some multimeasure-rests
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 15 Nov 2008 18:42:50 +0000 (19:42 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 15 Nov 2008 22:28:16 +0000 (23:28 +0100)
This is currently broken: the direction element is placed after the final
barline, thus creating invalid LilyPond syntax... For this reason, this
file does not have the default .xml file extension for now, until I have
resolved the problem...

input/regression/musicxml/03d-Directions-MultimeasureRests.xml.broken [new file with mode: 0644]

diff --git a/input/regression/musicxml/03d-Directions-MultimeasureRests.xml.broken b/input/regression/musicxml/03d-Directions-MultimeasureRests.xml.broken
new file mode 100644 (file)
index 0000000..3760391
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.1 Partwise//EN"\r
+                                "http://www.musicxml.org/dtds/partwise.dtd">\r
+<score-partwise version="1.1">\r
+  <movement-title>MusicXML directions (attached to staff)</movement-title>\r
+  <identification>\r
+    <miscellaneous>\r
+      <miscellaneous-field name="description">Directions between some \r
+        multi-measure rests should still be converted to the correct \r
+        position.</miscellaneous-field>\r
+    </miscellaneous>\r
+  </identification>\r
+  <defaults/>\r
+  <part-list>\r
+    <score-part id="P1">\r
+      <part-name print-object="no">MusicXML Part</part-name>\r
+    </score-part>\r
+  </part-list>\r
+  <!--=========================================================-->\r
+  <part id="P1">\r
+    <!--=======================================================-->\r
+    <measure number="1">\r
+      <attributes>\r
+        <divisions>8</divisions>\r
+        <key>\r
+          <fifths>0</fifths>\r
+          <mode>major</mode>\r
+        </key>\r
+        <time symbol="common">\r
+          <beats>4</beats>\r
+          <beat-type>4</beat-type>\r
+        </time>\r
+        <clef>\r
+          <sign>G</sign>\r
+          <line>2</line>\r
+        </clef>\r
+      </attributes>\r
+      <note>\r
+        <rest/>\r
+        <duration>32</duration>\r
+        <voice>1</voice>\r
+      </note>\r
+      <direction placement="above">\r
+        <direction-type>\r
+          <words font-family="Times New Roman" font-size="9.6" font-weight="bold">TEST</words>\r
+        </direction-type>\r
+        <offset>-4</offset>\r
+      </direction>\r
+    </measure>\r
+    <!--=======================================================-->\r
+    <measure number="2">\r
+      <note>\r
+        <rest/>\r
+        <duration>32</duration>\r
+        <voice>1</voice>\r
+      </note>\r
+    </measure>\r
+    <!--=======================================================-->\r
+    <measure number="3">\r
+      <note>\r
+        <rest/>\r
+        <duration>32</duration>\r
+        <voice>1</voice>\r
+      </note>\r
+      <barline location="right">\r
+        <bar-style>light-heavy</bar-style>\r
+      </barline>\r
+    </measure>\r
+    <!--=======================================================-->\r
+  </part>\r
+  <!--=========================================================-->\r
+</score-partwise>\r