Hello,
Is there a way to draw a line on the reference point of the "padding" property?
Aaron already wrote a snippet for obtaining that for the X-offset property (where the x-ref-point is on the x-parent):
%%%%
\version "2.19.83"
{
\once \override DynamicText.after-line-breaking = #(lambda (grob)
(let* ((x-parent (ly:grob-parent grob X))
(orig-sten (ly:grob-property x-parent 'stencil
(ly:make-stencil '()))))
(ly:grob-set-property! x-parent 'stencil
(grob-interpret-markup x-parent #{
\markup \combine \stencil #orig-sten
\with-dimensions #'(0 . 0) #'(0 . 0) \vcenter
\with-color #red \draw-line #'(0 . 6) #}))))
c'\mf
}
%%%%
Now I wonder how to extend it to other props, starting with the "padding" one...
Thanks,
P