Dear All,
Sadly Martin passed away on 16/10/24 from prostate cancer. 
Kind regards 
Sarah Rushton widow of the late Martin Rushton
 
------ Original Message ------
From: l.fasci...@gmail.com
To: lilypond-user@gnu.org
Sent: Thursday, February 13th 2025, 16:53
Subject: Checking if a note or chord has a beam or a flag
 
Hi,
 

for my fingering engraver I'd like to position the fingering mark differently based on whether the note/chord has a flag or a beam (I push it out in X a little when there is a flag)
 
So I thought I could use
 
 (flag (ly:grob-object stem 'flag))
 
Where stem is a normal stem grob (I think `stem` itself is fine, because
for example this works: (duration-log (ly:grob-property stem 'duration-log))  )
 
I tried both ly:grob-object as well as ly:grob-property, but neither gives me back much
 
My test is
 
(display (ly:grob? flag))
 
And this prints #f
 
What's the right way to do this?
I just need to be able to tell apart beam vs flag, I don't think I need a more refined test
 
Cheers,
Luca

 
 
-- 
 

Luca Fascione
 

Reply via email to