lilypond-user
[Top][All Lists]
Advanced

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

Re: Modifying barline right before a stave is hidden


From: David Kastrup
Subject: Re: Modifying barline right before a stave is hidden
Date: Thu, 28 Aug 2014 10:36:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> Hi all,
>
> is it possible to write a function that does something based on
> whether the current context will be visible or hidden in the next
> system?  For example, i have
>
> \version "2.19.12"
>
> \layout {
>   \context {
>     \Score
>     \RemoveEmptyStaves
>   }
> }

No, and your question does not even make sense.  There is no "current
context" by the time \RemoveEmptyStaves has an effect.  Iteration is
over, and arranging the bunch of grobs it produced is already in a late
stage of assembly, after determining line breaks.  Any connection to a
context is confined to the properties a Grob inherited from the
engraver's context's properties at the time it was created.

\RemoveEmptyStaves has resulted in the creation of VerticalAxisGroup
grobs with suicidal tendencies.  They commit suicide based on the live
and death of other potentially suicidal VerticalAxisGroup grobs, and
based on whether they have seen grobs created (and survive) supporting
any of a number of specified interfaces during their lifetime.

-- 
David Kastrup



reply via email to

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