lilypond-user
[Top][All Lists]
Advanced

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

Re: Dynamics offset suddenly changes


From: Andrew Bernard
Subject: Re: Dynamics offset suddenly changes
Date: Tue, 26 Mar 2019 11:04:38 +1100

Hi Aaron,

The pink arrow lines - how does lilypond work out this distance? It seems to be that that is jumping around. Can you help me understand that?

Andrew


On Tue, 26 Mar 2019 at 08:18, Aaron Hill <address@hidden> wrote:


Consider the following:

%%%%
\version "2.19.82"
\paper { indent = 0 line-width = 5\in ragged-right = ##f }
\layout { \omit Staff.TimeSignature }

test = {
   %% Overlay reference lines.
   \once \override Hairpin.stencil =
     #(grob-transformer 'stencil (lambda (grob orig)
       (grob-interpret-markup grob #{
         \markup \with-dimensions-from \stencil $orig \overlay {
           \with-color #(rgb-color 0.4 0.7 1.0)
           \path #0.2 #'((moveto -2 0) (lineto 66 0))
           \with-color #(rgb-color 1.0 0.4 0.7)
           \path #0.2 #'((moveto 0 0) (lineto 0 7) (moveto -2 7)
             (lineto 2 7) (moveto -1 5.5) (lineto 0 7) (lineto 1 5.5))
           \stencil $orig } #})))
   | g4\p\< g'2.\!
   | g4\p g4\< g'2\!
   | g4\p g'4\< g'2\!
   | g'2.\< g4\!\f
   | g'2\< g4\! g4\f
   | g'2\< g'4\! g4\f \break
}
{
   \test
   \override DynamicLineSpanner.minimum-space = #7
   \override DynamicLineSpanner.padding = #0
   \override DynamicLineSpanner.staff-padding = #0
   \test
}
%%%%


reply via email to

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