Getting the name out of a Scheme object

2015-01-14 Thread Urs Liska
If I have a Scheme object like (#Grob DynamicText ) how can I retrieve DynamicText as a string? TIA Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Getting the name out of a Scheme object

2015-01-14 Thread Thomas Morley
2015-01-14 10:16 GMT+01:00 Urs Liska u...@openlilylib.org: 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)