lilypond-user
[Top][All Lists]
Advanced

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

Re: Curiousity question about explicitClefVisibility


From: David Kastrup
Subject: Re: Curiousity question about explicitClefVisibility
Date: Thu, 20 Sep 2012 07:47:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Jim Long <address@hidden> writes:

> But this doesn't:
>
> \version "2.16.0"
>
> \score {
>   \relative c' {
>     c4 c c c
>     \break
>     \set Staff.explicitClefVisibility = #end-of-line-invisible
>     \clef bass
>     \unset Staff.explicitClefVisibility
>     c4 c c c
>     \break
>   }
> }
>
> I couldn't immediately think of why there has to be music between the
> \clef and the \unset in order for the #end-of-line-invisible to take
> effect.

\set and \unset are commands setting context properties at the current
point of musical time in a context.  Here you are both setting and
unsetting a property at the same point of time.  The net effect is zero
since the code dealing with setting/resetting properties runs only once
per timestep, and the code dealing with \clef bass is not wedged in
between.

-- 
David Kastrup




reply via email to

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