lilypond-devel
[Top][All Lists]
Advanced

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

Re: Naming _another_ lacking puzzle piece


From: David Kastrup
Subject: Re: Naming _another_ lacking puzzle piece
Date: Sat, 13 Oct 2012 15:29:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

David Nalesnik <address@hidden> writes:

> On Sat, Oct 13, 2012 at 8:15 AM, David Kastrup <address@hidden> wrote:
>> David Nalesnik <address@hidden> writes:
>
>>>
>>> Buildup of unwanted data or no, it would be useful to be able to write
>>> something like
>>>
>>> \toLast Accidental #'color
>>>
>>> to restore the previous override
>>
>> But which is the "previous override" if you have several in a row?
>>
>
> I see your point.  I simply meant the immediately preceding override.  So:
>
> \override Accidental color = #green
> \override Accidental color = #red
> \override Accidental color = #blue
> [...]
> \toLast Accidental color
>
> would restore red

\override Accidental color = #green
\override Accidental color = #red
\push\override Accidental color = #blue
[...]
\revert Accidental color

or, if you prefer
\override Accidental color = #green
\override Accidental color = #red
\temporary\override Accidental color = #blue
[...]
\revert Accidental color

\revert will go back to the value before the last \temporary/push
override.

-- 
David Kastrup



reply via email to

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