Denis Roegel wrote:
I am trying to center a markup under a bracket
This was discussed recently here:
http://lists.gnu.org/archive/html/lilypond-user/2009-03/msg00426.html
But, instead of OUHM, you could perhaps do it like the "Expressive marks"
snippet "Center text below hairpin dynamics" (cf LSR 223)
midHB =
#(define-music-function (parser location text) (markup?)
#{
\once \override Staff.HorizontalBracket #'stencil = #(lambda (grob)
(ly:stencil-aligned-to
(ly:stencil-combine-at-edge
(ly:stencil-aligned-to (ly:horizontal-bracket::print grob) X CENTER)
Y (ly:grob-property grob 'direction)
(ly:stencil-aligned-to (grob-interpret-markup grob $text)
X CENTER) 1 0 )
X LEFT))
#})
\midHB \markup { X } a'\startGroup b'\stopGroup
Cheers,
Robin
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user