2017-07-03 11:42 GMT+02:00 Thomas Morley <[email protected]>:
> %% 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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to