lilypond-devel
[Top][All Lists]
Advanced

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

Re: Provide an \un function for turning overrides and sets into reverts


From: David Kastrup
Subject: Re: Provide an \un function for turning overrides and sets into reverts and unsets (issue 6588067)
Date: Sat, 06 Oct 2012 10:50:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> On Sat, Oct 6, 2012 at 9:10 AM,  <address@hidden> wrote:
>> Is it enough to say that after
>>
>> unHideNotes = \un\hideNotes
>> oneVoice = \un\voiceOne
>>
>> you would not notice a difference? \un\omit StringNumber will revert the
>> effect of \omit StringNumber.
>
> That's what i expected.  Are there any limitations?  For example,
> would \un\clef and \un\key result in
> - reverting to previous clef/key
> - something strange
> - syntax error

Something strange is most likely.  \set does not really maintain a
stack, so \unset just kills the context-dependent value.

\un\clef would likely return to the violin clef, \un\key to c\major,
regardless of what has happened before.  This is just a wild guess.
\un\key would not actually trigger a key display (since \key is not pure
override), but likely accidentals would afterwards behave like c\major.

That's all just guessing, I haven't tried any of that out actually.

-- 
David Kastrup



reply via email to

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