Hello Fennel, That will not work out easily. The horizontal bracket, meaning it is printed to encompass certain NoteColumns. But you are not even creating notes, but simply skipping. Thus there are no NoteColumns to encompass. So what you’d need to do is to replace the skips by notes:
brackets = \new Dynamics { \override VerticalAxisGroup.staff-affinity = #DOWN c4 c\startGroup c c\stopGroup | c\startGroup c c\stopGroup c } Then this will still not work, as the Dynamics context does not create any NoteColumns by default. So you’ll need to add Rhythmic_column_engraver. But to actually have something to encompass you’d need to have a stencils, so you’d need to also add the Note_heads_engraver. Then you’d need to get rid of the note heads, but you still need a stencil, so do something like \layout { \context { \Dynamics \consists Horizontal_bracket_engraver \override HorizontalBracket.direction = #UP \consists Note_heads_engraver \consists Rhythmic_column_engraver \override NoteHead.stencil = #(ly:make-stencil '() '(0 . 0) '(0 . 0)) } } But then I’m curious of what you actually want to get from adding analysis brackets to a Dynamics context? Cheers, Valentin Am Sonntag, 14. Juli 2024, 17:23:21 MESZ schrieb Fennel: > The dynamics context seems to work well enough for text markup objects. I’d > also like to throw a lot of analysis brackets into a Dynamics context above > the staff with similar output. Here’s what I would imagine working > > \version "2.24.3" > > \layout { > \context { > \Voice % Or \Dynamics ? There's no mention of a dynamics context on the > relevant doc page. \consists Horizontal_bracket_engraver > \override HorizontalBracket.direction = #UP > > } > } > > music = \context Staff \relative c'' { > \repeat unfold 8 {c4} > } > > brackets = \context Dynamics { > \override VerticalAxisGroup.staff-affinity = #DOWN > s4 s\startGroup s s\stopGroup | s\startGroup s s\stopGroup s > } > > \score { << \music \brackets >> } > > [image.png] > > This snippet fails to engrave the analysis brackets, as shown. Is it > possible to do so? > > -Fennel > >
signature.asc
Description: This is a digitally signed message part.