lilypond-user
[Top][All Lists]
Advanced

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

Re: Accidentals from note grob


From: Nils Nommensen
Subject: Re: Accidentals from note grob
Date: Thu, 1 Aug 2019 15:23:46 +0200

Sorry to bother you with this, but I'm really new to Lilypond and Scheme. I need a String representation of the name. If I use display on the return value, I get something like: "accidentals.natural"#<unspecified>".
How can I extract the "natural" part?

Thank you very much for your help!

Am Do., 1. Aug. 2019 um 14:02 Uhr schrieb Thomas Morley <address@hidden>:
Am Do., 1. Aug. 2019 um 13:13 Uhr schrieb Nils Nommensen
<address@hidden>:
>
> While I'm at it: How would I get the correct glyph name from the accidental-grob object as a string?

#(define get-accidental
  (lambda (note)
    (let*  ((acc (ly:grob-object note 'accidental-grob)))
      (write (ly:grob-property acc 'glyph-name)))))

should do.

Cheers,
  Harm

reply via email to

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