Jump to content

Analysis brackets

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

Brackets can be used in musical analysis to indicate the structure of the pieces.

As demonstrated in the second measure, such analysis brackets can be nested.

\version "2.24.0"

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

\layout {
  \context {
    \Voice
    \consists "Horizontal_bracket_engraver"
  }
}
\relative c'' {
  c4\startGroup\startGroup
  d4\stopGroup
  e4\startGroup
  d4\stopGroup\stopGroup
}