Cross-staff arpeggio brackets: Difference between revisions
Appearance
Import snippet from LSR |
m Remove LSR link |
||
| Line 2: | Line 2: | ||
<lilypond version="2.24.0"> | <lilypond version="2.24.0"> | ||
csBracket = \override PianoStaff.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket | csBracket = \override PianoStaff.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket | ||
Latest revision as of 21:30, 3 November 2025
By default, the arpeggioBracket shortcut only works at a Voice level. As a consequence, if you need to print cross-staff arpeggios, it will not work (as demonstrated in the first measure of this example); here is a way to make it work (demonstrated in the second measure).
\version "2.24.0"
csBracket = \override PianoStaff.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
\score{
\new PianoStaff \with { connectArpeggios = ##t } <<
\new Staff {
\arpeggioBracket c''1\arpeggio
\csBracket c'' \arpeggio
}
\new Staff {
\arpeggioBracket c'1 \arpeggio
\csBracket c' \arpeggio
}
>>
}