]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/new/volta-multi-staff.ly
Merge branch 'master' into dev/texi2html
[lilypond.git] / input / new / volta-multi-staff.ly
index 7f1a4899716b9e05f81686cbe71d53a5ec50ae7b..276a49f9a71f1c207a83eccb8b0c32e123ebb9ff 100644 (file)
@@ -1,24 +1,30 @@
 \version "2.11.36"
-\layout { ragged-right= ##t }
 \header {
+  lsrtags = "repeats,staff-notation,fretted-strings"
+  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"
-  lsrtags = "repeats,staff-notation"
-  texidoc = "By adding @code{Volta_engraver}, repeat brackets
-can be put over staves other than the topmost one in a score."
 }
 
-vmus = \relative c'' {
-  \repeat volta 2 c1 \alternative { d e } 
-} 
+voltaMusic = \relative c'' {
+  \repeat volta 2 {
+    c1
+  }
+  \alternative {
+    d1
+    e
+  }
+}
 
 <<
   \new StaffGroup <<
-    \context Staff \vmus
-    \new Staff \vmus
+    \context Staff \voltaMusic
+    \new Staff \voltaMusic
   >>
   \new StaffGroup <<
-    \new Staff \with { \consists Volta_engraver }
-      \vmus
-    \new Staff \vmus
+    \new Staff \with { \consists "Volta_engraver" }
+      \voltaMusic
+    \new Staff \voltaMusic
   >>
 >>