]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/midi/partcombine.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / midi / partcombine.ly
diff --git a/input/regression/midi/partcombine.ly b/input/regression/midi/partcombine.ly
new file mode 100644 (file)
index 0000000..6cd50b0
--- /dev/null
@@ -0,0 +1,46 @@
+\version "2.14.0"
+
+\layout {
+  \context {
+    \Voice
+    \remove "Note_heads_engraver"
+    \consists "Completion_heads_engraver"
+    \remove "Rest_engraver"
+    \consists "Completion_rest_engraver"
+  }
+}
+\midi {
+  \context {
+    \Score
+    midiChannelMapping = #'instrument
+  }
+}
+
+\header {
+texidoc="Partcombined music is preserved"
+options="--skip"
+}
+
+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 {}
+}