]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Add regtest for elements between the individual notes of a chord
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 12 Nov 2008 22:00:47 +0000 (23:00 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 12 Nov 2008 22:08:26 +0000 (23:08 +0100)
This is currently broken in musicxml2ly: The elements are always placed
after the note or assigned to the next following note, respectively :(

input/regression/musicxml/01f-Chord-ElementInBetween.xml [new file with mode: 0644]

diff --git a/input/regression/musicxml/01f-Chord-ElementInBetween.xml b/input/regression/musicxml/01f-Chord-ElementInBetween.xml
new file mode 100644 (file)
index 0000000..d7c2185
--- /dev/null
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 0.6 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
+<score-partwise>
+    <work> <work-title>Elements between notes of a chord</work-title></work> 
+    <part-list>
+        <score-part id="P0">
+            <part-name>Chord test</part-name>
+            <score-instrument id="I1">
+                <instrument-name>0</instrument-name>
+            </score-instrument>
+            <midi-instrument id="I1">
+                <midi-channel>1</midi-channel>
+                <midi-program>1</midi-program>
+            </midi-instrument>
+        </score-part>
+    </part-list>
+    <part id="P0">
+        <measure number="1">
+            <attributes>
+                <divisions>960</divisions>
+                <time>
+                    <beats>4</beats>
+                    <beat-type>4</beat-type>
+                </time>
+                <clef>
+                    <sign>G</sign>
+                    <line>2</line>
+                </clef>
+            </attributes>
+            <note>
+                <pitch>
+                    <step>A</step>
+                    <octave>4</octave>
+                </pitch>
+                <duration>960</duration>
+                <voice>1</voice>
+                <type>quarter</type>
+            </note>
+            <direction>
+              <direction-type>
+                <segno/>
+              </direction-type>
+            </direction>
+            <note>
+                <chord/>
+                <pitch>
+                    <step>F</step>
+                    <octave>4</octave>
+                    <alter>1</alter>
+                </pitch>
+                <duration>960</duration>
+                <voice>1</voice>
+                <type>quarter</type>
+            </note>
+            <direction>
+                <direction-type>
+                    <dynamics><p/></dynamics>
+                </direction-type>
+            </direction>
+            <note>
+                <chord/>
+                <pitch>
+                    <step>D</step>
+                    <octave>4</octave>
+                </pitch>
+                <duration>960</duration>
+                <voice>1</voice>
+                <type>quarter</type>
+            </note>
+            <note>
+                <rest/>
+                <duration>960</duration>
+                <voice>1</voice>
+                <type>quarter</type>
+            </note>
+            <note>
+                <rest/>
+                <duration>1920</duration>
+                <voice>1</voice>
+                <type>half</type>
+            </note>
+        </measure>
+    </part>
+</score-partwise>