Jump to content

Analysis brackets above the staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
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 {
Line 20: Line 20:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 23:15, 21 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
}