]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/volta-multi-staff.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / volta-multi-staff.ly
diff --git a/Documentation/snippets/volta-multi-staff.ly b/Documentation/snippets/volta-multi-staff.ly
new file mode 100644 (file)
index 0000000..030a54a
--- /dev/null
@@ -0,0 +1,41 @@
+%% 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.14.0"
+
+\header {
+  lsrtags = "repeats, staff-notation"
+
+  texidoc = "
+By adding the @code{Volta_engraver} to the relevant staff, volte can be
+put over staves other than the topmost one in a score.
+
+"
+  doctitle = "Volta multi staff"
+} % begin verbatim
+
+voltaMusic = \relative c'' {
+  \repeat volta 2 {
+    c1
+  }
+  \alternative {
+    d1
+    e1
+  }
+}
+
+<<
+  \new StaffGroup <<
+    \new Staff \voltaMusic
+    \new Staff \voltaMusic
+  >>
+  \new StaffGroup <<
+    \new Staff \with { \consists "Volta_engraver" }
+      \voltaMusic
+    \new Staff \voltaMusic
+  >>
+>>
+