]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/volta-chord-names.ly
* input/test/vertical-extent.ly:
[lilypond.git] / input / test / volta-chord-names.ly
index e1aa1108e603d4e1517300caace823a86d1d185b..b76b6630e6c2169a516a42fc244870d2864934db 100644 (file)
@@ -1,21 +1,19 @@
 \header {
-
-    texidoc = "Volta brackets can be placed over chord names. This
-requires adding an engraver to @code{ChordNames}, and setting
-@code{voltaOnThisStaff} correctly."
-
+    texidoc = "Volta brackets can be placed over chord names. Just set
+the @code{voltaOnThisStaff} property to true for the @code{ChordNames} context and to false for the topmost ordinary @code{Staff} context."
 }
 
-\version "2.3.5"
-<<
+\version "2.7.39"
+\score { <<
   \new ChordNames \with {
-      voltaOnThisStaff = ##t
-  } \chords {
-     c1 c
+    voltaOnThisStaff = ##t
+  } \chordmode {
+    c1 c
   }
   \new Staff \with {
-      voltaOnThisStaff = ##f
-  } {
-   \repeat volta 2 { c'1 } \alternative { c' }
+    voltaOnThisStaff = ##f
+  }
+  {
+    \repeat volta 2 { c'1 } \alternative { c' }
   }
->>
+>> }