[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shortcut for creating new Staff "subclass" context?
From: |
Dan Eble |
Subject: |
Re: shortcut for creating new Staff "subclass" context? |
Date: |
Fri, 11 Sep 2009 18:50:29 -0400 |
On 2009-09-11, at 06:44 , Kieren MacMillan wrote:
Now my question is... does the order of the lines matter at all? I'm
assuming they do — e.g., if you don't change the \name until after
changing some \override, there'll be confusion — but does anyone
know for certain what the precedence must be?
The settings in the \context {} block are saved as a group at the same
time, so the following example modifies Staff rather than Voice.
Inside the \context {} block, the settings take effect in order, so
the following example turns the staff lines red.
\version "2.12.2"
\layout {
\context {
\Staff
\override StaffSymbol #'color = #blue
\name Voice
\override StaffSymbol #'color = #red
\name Staff
} }
\relative c' { c }
Whatever you do, don't do this:
\version "2.12.2"
\layout {
\context {
\Staff
\name Voice
} }
\relative c' { c }
I'm not sure what it's doing, but it is taking a long time. :-)
--
Dan