Jump to content

Cross-staff arpeggio brackets

From LilyPond wiki
Revision as of 22:42, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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"

%% http://lsr.di.unimi.it/LSR/Item?id=470


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 
  }
 >>
}