]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add regtests for automatic polyphony in DrumStaff and TabStaff contexts
authorMarc Hohl <marc@hohlart.de>
Sat, 22 Aug 2009 20:28:58 +0000 (14:28 -0600)
committerCarl Sorensen <c_sorensen@byu.edu>
Sat, 22 Aug 2009 20:31:48 +0000 (14:31 -0600)
input/regression/automatic-polyphony-drumstaff.ly [new file with mode: 0644]
input/regression/automatic-polyphony-tabstaff.ly [new file with mode: 0644]

diff --git a/input/regression/automatic-polyphony-drumstaff.ly b/input/regression/automatic-polyphony-drumstaff.ly
new file mode 100644 (file)
index 0000000..9e46185
--- /dev/null
@@ -0,0 +1,15 @@
+\version "2.13.4"
+
+\header{ texidoc = "In a DrumStaff, automatic polyphony can be used without
+                    explicitly initializing separate voices."
+       }
+
+\score {
+  \new DrumStaff {
+    \drummode {
+      bd4 sn4 bd4 sn4
+      << { \repeat unfold 16 hh16 } \\ { bd4 sn4 bd4 sn4 } >>
+      bd4 sn4 bd4 sn4
+    }
+  }
+}
\ No newline at end of file
diff --git a/input/regression/automatic-polyphony-tabstaff.ly b/input/regression/automatic-polyphony-tabstaff.ly
new file mode 100644 (file)
index 0000000..e696a08
--- /dev/null
@@ -0,0 +1,18 @@
+\version "2.13.4"
+
+\header{ texidoc = "In a TabStaff, automatic polyphony can be used without
+                    explicitly initializing separate voices."
+       }
+
+test = {
+  c'1
+  << { c'4 d' e' f' } \\ { g,1 } >>
+  c'1
+}
+
+\score {
+  <<
+    \new Staff { \clef "treble_8" \test }
+    \new TabStaff { \test }
+  >>
+}
\ No newline at end of file