Le 21/12/2021 à 21:49, David Kastrup a écrit :
Your "if" has no else path. Maybe replace it with "and", assuming that ChordName knows how to deal with an X-offset of #f (which tends to be a valid setting for any predicate in grob properties).
Ouch. Looking at the relevant code path uncovered what is to me buggy-looking behavior. https://gitlab.com/lilypond/lilypond/-/issues/6226 So, yes, "and" would be a good idea. [Valentin]
Hello Jean, hello David, hello Kieren, you should even be able to write (if sten (ly:stencil-extent sten)), as the stencil should always be a stencil or #f.
The two universally accepted values for any property regardless of the predicate are #f and '(), so it may still be '(), which is why checking with specific predicates like this is often used in LilyPond's source. Best, Jean