lilypond

Lilypond: How do I insert a bracket in a chord of whole notes in a vocal score to indicate which part an extra note belongs to?


In Lilypond, I am writing a vocal score in closed form (Sop & Alto on top line, Tenor & Bass on bottom) and occasionally I need the parts to divide. This is fine in most cases because the note stems indicate which note belongs to which part, but not when the note has no stem!

The usual method that I've seen is to insert a left square bracket indicating the notes to be grouped together, like so:

divisi whole notes

I have tried searching the documentation high and low for a snippet or something to do with vertical brackets or braces but unfortunately I can't think of any keywords that don't throw up a lot of false hits.

Can anyone help?


Solution

  • It's done with arpeggios, which can be counterintuitive. Here is the basic setup:

    \version "2.24.0"
    
    \score {
      \new StaffGroup <<
        \override StaffGroup.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
        \new Staff <<
          \new Voice { \voiceOne c''1 }
          \new Voice { \voiceTwo g'1 }
        >>
        \new Staff <<
          \clef bass
          \new Voice { \voiceThree e' }
          \new Voice { \voiceFour <c g>1\arpeggio }
        >>
      >>
    }
    

    You may have to adjust the bracket length, but that's another question.