Adding volta brackets to additional staves: Difference between revisions

Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
The <code>Volta_engraver</code> by default resides in the <code>Score</code> context, and brackets for the repeat are thus normally only printed over the topmost staff. This can be adjusted by adding the <code>Volta_engraver</code> to the <code>Staff</code> context where the brackets should appear; see also the “Volta multi staff” snippet.
The <code>Volta_engraver</code> by default resides in the <code>Score</code> context, and brackets for the repeat are thus normally only printed over the topmost staff. This can be adjusted by adding the <code>Volta_engraver</code> to the <code>Staff</code> context where the brackets should appear; see also the “Volta multi staff” snippet.


<lilypond version="2.24.0">
<lilypond version="2.24">
<<
<<
   \new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
   \new Staff { \repeat volta 2 { c'1 } \alternative { c' } }