]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-volta-brackets-to-additional-staves.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / adding-volta-brackets-to-additional-staves.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "repeats"
11
12   texidoc = "
13 The @code{Volta_engraver} by default resides in the @code{Score}
14 context, and brackets for the repeat are thus normally only printed
15 over the topmost staff. This can be adjusted by adding the
16 @code{Volta_engraver} to the @code{Staff} context where the brackets
17 should appear; see also the @qq{Volta multi staff} snippet.
18
19 "
20   doctitle = "Adding volta brackets to additional staves"
21 } % begin verbatim
22
23
24 <<
25   \new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
26   \new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
27   \new Staff \with { \consists "Volta_engraver" } { c'2 g' e' a' }
28   \new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
29 >>