On 2024-04-16 4:03 am, Aaron Hill wrote:
On 2024-04-16 3:59 am, Aaron Hill wrote:
What you are looking for, however, can be done with horizontal/analysis brackets:

%%%%
\version "2.25.13"

\new Voice
\with { \consists Horizontal_bracket_engraver }
{
  b'4
  -\tweak layer 0
  -\tweak direction #UP
  -\tweak bracket-flare #'(0 . 0)
  -\tweak HorizontalBracketText.Y-offset -0.5
  -\tweak HorizontalBracketText.text
    \markup \whiteout \pad-around #0.5 "9\""
  -\startGroup 4 2\stopGroup
}
%%%%

Oh, and if you need the brackets to align to the measures and not notes, then the Measure_spanner_engraver is what you probably want.


Sorry for the extra noise. I meant to include an example snippet in my earlier mail.

%%%%
\version "2.25.13"

\new Voice
\with { \consists Measure_spanner_engraver }
{
  \tweak spacing-pair #'(time-signature . staff-bar)
  \tweak text "9\""
  \startMeasureSpanner
  b'4 4 2
  \stopMeasureSpanner
}
%%%%


-- Aaron Hill

Reply via email to