Jump to content

Analysis brackets above the staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Simple horizontal analysis brackets are added below the staff by default. The following example shows a way to place them above the staff instead.
Simple horizontal analysis brackets are added below the staff by default. The following example shows a way to place them above the staff instead.


<lilypond version="2.24.0">
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {

Revision as of 18:53, 16 November 2025

Simple horizontal analysis brackets are added below the staff by default. The following example shows a way to place them above the staff instead.

\version "2.24"

\layout {
  \context {
    \Voice
    \consists "Horizontal_bracket_engraver"
  }
}

\relative c'' {
  \once \override HorizontalBracket.direction = #UP
  c2\startGroup
  d2\stopGroup
}