Next: , Previous: Text spanners, Up: Expressive marks



4.7.6 Analysis brackets

Brackets are used in musical analysis to indicate structure in musical pieces. LilyPond supports a simple form of nested horizontal brackets. To use this, add the Horizontal_bracket_engraver (lilypond-internals) to Staff (lilypond-internals) context. A bracket is started with \startGroup and closed with \stopGroup:

     \score { \notes \relative c'' {
     	c4\startGroup\startGroup
     	c4\stopGroup
     	c4\startGroup
             c4\stopGroup\stopGroup
       }
       \paper { \translator {
     	    \StaffContext \consists "Horizontal_bracket_engraver"
     	}}}

[picture of music]

See also

HorizontalBracket (lilypond-internals), NoteGroupingEvent (lilypond-internals), and input/regression/note-group-bracket.ly.

This page is for LilyPond-2.0.3 (stable-branch).
Report errors to <bug-lilypond@gnu.org>.