lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Highlight the y reference point for the "padding" property


From: Paolo Prete
Subject: Highlight the y reference point for the "padding" property
Date: Tue, 21 Jan 2020 14:40:08 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]