[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ossia problem - different timing
From: |
David Kastrup |
Subject: |
Re: Ossia problem - different timing |
Date: |
Thu, 21 Jan 2016 14:52:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Kevin Barry <address@hidden> writes:
> On 21 January 2016 at 13:02, Ralph Palmer <address@hidden> wrote:
>
>> I can't figure out how to revert for that one bar
>
>
> There are two ways to do this:
> 1) move your \override from the \with {} block into the beginning of the
> music expression so that you can \revert it later on, when you need to
Reverting does not depend on whether the override happened in a \with
expression or with an explicit \override. However, the overrides in
context definitions and \with expressions _accumulate_ on the stack
while normal \override _replaces_ the topmost override.
So if you want to get back a _previous_ context-specific value (many
grob property values are just established as global defaults and are
impervious to reverting) through reverting, you need to use
\temporary\override instead of \override.
> 2) check what the default value is in the internals manual and use
> that as a value for an override
If there _is_ a default value, reverting should get you there.
Here is an example for accumulating overrides:
\layout {
\context {
\Staff
\override NoteHead.color = #red
\override NoteHead.color = #blue
}
}
\fixed c'
\new Staff \with {
\override NoteHead.color = #green
}
{
c1
\revert Staff.NoteHead.color
g
\revert Staff.NoteHead.color
e
\revert Staff.NoteHead.color
c
}
--
David Kastrup