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



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to