]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/using-autochange-with-more-than-one-voice.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / using-autochange-with-more-than-one-voice.ly
diff --git a/Documentation/snippets/using-autochange-with-more-than-one-voice.ly b/Documentation/snippets/using-autochange-with-more-than-one-voice.ly
new file mode 100644 (file)
index 0000000..cd7f685
--- /dev/null
@@ -0,0 +1,51 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.16.0"
+
+\header {
+  lsrtags = "keyboards, pitches, staff-notation"
+
+  texidoc = "
+Using @code{autochange} with more than one voice.
+
+"
+  doctitle = "Using autochange with more than one voice"
+} % begin verbatim
+
+\score
+{
+  \new PianoStaff
+  <<
+    \new Staff = "up" {
+      <<
+        \set Timing.beamExceptions = #'()
+        \set Timing.beatStructure = #'(4)
+        \new Voice {
+          \voiceOne
+          \autochange
+          \relative c' {
+            g8 a b c d e f g
+            g,8 a b c d e f g
+          }
+        }
+
+        \new Voice {
+          \voiceTwo
+          \autochange
+          \relative c' {
+            g8 a b c d e f g
+            g,,8 a b c d e f g
+          }
+        }
+      >>
+    }
+
+    \new Staff = "down" {
+      \clef bass
+    }
+  >>
+}