lilypond-devel
[Top][All Lists]
Advanced

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

Overrides and nesting: intentional?


From: David Kastrup
Subject: Overrides and nesting: intentional?
Date: Fri, 05 Aug 2011 09:55:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

If I take the following code:

\relative c' {
     c4
     \once\override Stem #'color = #red
     \override Stem #'color = #blue
     c4 c
     \revert Stem #'color
     c4
}

the result is that the second stem is blue, and the third is already
black again.  That surprised me.  If I take

\relative c' {
     c4
     \override Stem #'color = #blue
     \once\override Stem #'color = #red
     c4 c
     \revert Stem #'color
     c4
}

then the second stem is red and the third is blue which looks like less
of a surprise.  If we take the following:

\relative c' {
     c4
     \override Stem #'color = #blue
     \once\override Stem #'color = #red
     \revert Stem #'color
     c4 c
     c4
}

then just the second stem is blue.


-- 
David Kastrup




reply via email to

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