Re: Accidentals from note grob

2019-08-02 Thread Nils Nommensen
Alright, it was a mistake on my side. Your solutions work perfectly. Thanks a lot for your help! Am Fr., 2. Aug. 2019 um 09:48 Uhr schrieb Urs Liska : > > > Am 2. August 2019 08:43:51 MESZ schrieb Nils Nommensen < > n.nommen...@gmail.com>: > >That's exactly the point, I actually need the glyph

Re: Accidentals from note grob

2019-08-02 Thread Urs Liska
Am 2. August 2019 08:43:51 MESZ schrieb Nils Nommensen : >That's exactly the point, I actually need the glyph name. >If I am noch mistaken, the alteration attribute also incorporates the >information of the key signature. I need to know which accidental is >directly in front of the notehead.

Re: Accidentals from note grob

2019-08-02 Thread Nils Nommensen
That's exactly the point, I actually need the glyph name. If I am noch mistaken, the alteration attribute also incorporates the information of the key signature. I need to know which accidental is directly in front of the notehead. Therefore, the glyph name is probably what I need. However, the

Re: Accidentals from note grob

2019-08-01 Thread Thomas Morley
Am Do., 1. Aug. 2019 um 15:23 Uhr schrieb Nils Nommensen : > > 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"#". > How can I extract the

Re: Accidentals from note grob

2019-08-01 Thread Nils Nommensen
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"#". How can I extract the "natural" part? Thank you very much for your help! Am Do., 1. Aug. 2019

Re: Accidentals from note grob

2019-08-01 Thread Thomas Morley
Am Do., 1. Aug. 2019 um 13:13 Uhr schrieb Nils Nommensen : > > 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

Re: Accidentals from note grob

2019-08-01 Thread Nils Nommensen
While I'm at it: How would I get the correct glyph name from the accidental-grob object as a string? Am Do., 1. Aug. 2019 um 12:53 Uhr schrieb Thomas Morley < thomasmorle...@gmail.com>: > Am Do., 1. Aug. 2019 um 12:42 Uhr schrieb Nils Nommensen > : > > > > Thank you very much! That does the

Re: Accidentals from note grob

2019-08-01 Thread Thomas Morley
Am Do., 1. Aug. 2019 um 12:42 Uhr schrieb Nils Nommensen : > > Thank you very much! That does the trick Glad I could help. Cheers, Harm P.S. Please alway reply to all, even if merely confirming the proposed sollution works. cc-ing list ___

Re: Accidentals from note grob

2019-08-01 Thread Thomas Morley
Am Do., 1. Aug. 2019 um 12:03 Uhr schrieb Nils Nommensen : > > Hello everyone, > > Is there any way to get the accidentals that belong to a specific notehead > grob? > When calling ly:grob-basic-properties on the notehead grob, you get a list > with an attribute "parenthesis-friens", which has

Accidentals from note grob

2019-08-01 Thread Nils Nommensen
Hello everyone, Is there any way to get the accidentals that belong to a specific notehead grob? When calling ly:grob-basic-properties on the notehead grob, you get a list with an attribute "parenthesis-friens", which has the object accidental-grob. However, it seems that this is not actually a