lilypond-user
[Top][All Lists]
Advanced

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

Re: dynamic text spanner after breaking


From: Thomas Morley
Subject: Re: dynamic text spanner after breaking
Date: Mon, 3 Jul 2017 12:21:55 +0200

2017-07-03 11:42 GMT+02:00 Thomas Morley <address@hidden>:
> %% A procedure as argument does not work
> \new Staff
>  \with {
>    \override DynamicTextSpanner.bound-details.left-broken.text =
>     #(lambda (grob) "foo")
>  }
> \test

Looks like a limitation while setting nested properties. Though:

%% Restoring the entire list for bound-details works
%% (taken from define-grobs.scm)
\new Staff
 \with {
   \override DynamicTextSpanner.bound-details =
   #(lambda (grob)
     `((right . ((attach-dir .  ,LEFT)
                 (Y . 0)
                 (padding . 0.75)))
       (right-broken . ((attach-dir .  ,RIGHT)
                        (padding . 0.0)))
       (left . ((attach-dir .  ,LEFT)
                (Y . 0)
                (stencil-offset . (-0.75 . -0.5))
                (padding . 0.75)))
       (left-broken . ((attach-dir .  ,RIGHT)
                       (text . ,(ly:grob-property grob 'text))))))
 }
\test

Cheers,
  Harm



reply via email to

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