]> git.donarmstrong.com Git - lilypond.git/commitdiff
MIDI: add partcombine test.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 5 Apr 2011 20:10:17 +0000 (22:10 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 5 Apr 2011 20:10:17 +0000 (22:10 +0200)
input/regression/midi/partcombine.ly [new file with mode: 0644]

diff --git a/input/regression/midi/partcombine.ly b/input/regression/midi/partcombine.ly
new file mode 100644 (file)
index 0000000..a81a07a
--- /dev/null
@@ -0,0 +1,43 @@
+% Lily was here -- automatically converted by ../../../scripts/midi2ly.py from out/initial-key.midi
+\version "2.13.53"
+
+\layout {
+  \context {
+    \Voice
+    \remove "Note_heads_engraver"
+    \consists "Completion_heads_engraver"
+    \remove "Rest_engraver"
+    \consists "Completion_rest_engraver"
+  }
+}
+
+% included from ./out/initial-key.header
+\header {
+texidoc="Partcombined music is preserved"
+options=""
+}
+% end
+
+instrumentOne = \relative c' {
+  c4 d e f
+  R1
+  d'4 c b a
+  b4 g2 f4
+  e1
+}
+
+instrumentTwo = \relative g' {
+  R1
+  g4 a b c
+  d c b a
+  g f( e) d
+  e1
+}
+
+\score {
+<<
+  \new Staff = "staff" \partcombine \instrumentOne \instrumentTwo
+  >>
+  \layout {}
+  \midi {}
+}