2015-01-14 10:16 GMT+01:00 Urs Liska <[email protected]>:
> If I have a Scheme object like
>
>
> (#<Grob DynamicText >)
>
>
> how can I retrieve "DynamicText" as a string?
>
> TIA
>
>
> Urs
Hi Urs,
try
#(define grob-name
(lambda (x)
(if (ly:grob? x)
(assq-ref (ly:grob-property x 'meta) 'name)
(ly:error "~a is not a grob" x))))
{
\override DynamicText.after-line-breaking =
#(lambda (grob)
(display (grob-name grob)))
a'1\f
}
HTH,
Harm
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user