lilypond-user
[Top][All Lists]
Advanced

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

Re: DynamicTextSpanner


From: Torsten Hämmerle
Subject: Re: DynamicTextSpanner
Date: Sun, 29 Apr 2018 10:10:43 -0700 (MST)

foxfanfare wrote
> I can achieve it for the left part with "stencil-offset", but the same
> option didn't work in the right section!

Hi,

The reason why stencil-offset only works for the "cresc." on the left is
because the "cresc." text belongs to the DynamicTextSpanner, whereas the "f"
on the right side doesn't (it's a DynamicText and nothing but a neighbouring
grob).

The easiest solution would probably be to set both Y values to -0.5 in the
bound-details:

%%%%%
\relative { 
  \override DynamicTextSpanner.bound-details = #
    '((right (attach-dir . -1)
             (Y . -0.5)
             (padding . 0.75))
      (right-broken (attach-dir . 1) (padding . 0.0))
      (left (attach-dir . -1)
            (Y . -0.5)
            (stencil-offset -0.75 . 0)
            (padding . 0.75))
      (left-broken (attach-dir . 1)))
  c'2\cresc d e f g a b c\ff
}
%%%%%

Alternatively, you could move the \f by either overriding
DynamicText.Y-offset or DynamicText.extra-offset.

HTH,
Torsten



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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