bug-lilypond
[Top][All Lists]
Advanced

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

Re: Something wrong/strange about flags?


From: Neil Puttock
Subject: Re: Something wrong/strange about flags?
Date: Sun, 25 Dec 2011 23:18:03 +0000

On 25 Dec 2011 23:01, "Thomas Morley" <address@hidden> wrote:

> I think there could be some difficulties to find the correct
> condition, when I create my own definitions/functions:
>
> \version "2.15.20"
>
> displayGrob =
>       \once\override Stem #'after-line-breaking =
>       #(lambda (grob)
>         (let* ((beam (ly:grob-object grob 'beam))
>                (flag (ly:grob-object grob 'flag)))
>
>         (begin
>           (if (ly:grob? beam)
>               (display "Yes")
>               (display "No"))
>           (newline)
>           (if (ly:grob? flag)
>               (display "Yes")
>               (display "No"))
>           (newline))))
>
> { \displayGrob c'8[ d'] }
>
> I retrieve "Yes" in both cases.

Filter out suicided grobs via grob::is-live?

Cheers,
Neil


reply via email to

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