bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 2076 in lilypond: Doc: improve NR 1.6.3 Instrument names (bett


From: lilypond
Subject: Re: Issue 2076 in lilypond: Doc: improve NR 1.6.3 Instrument names (better to use \with )
Date: Tue, 06 Dec 2011 10:47:31 +0000


Comment #2 on issue 2076 by address@hidden: Doc: improve NR 1.6.3 Instrument names (better to use \with )
http://code.google.com/p/lilypond/issues/detail?id=2076

Hi James, you said you started.  Here is a bit more information:

When do you want to use a context modification, and when a normal override? A context modification is best to use for things that concern the entire life-time of a context, like the appearance of its staff, its accidental styles, its instrument name and so on. A normal override, in contrast, starts its work at the moment it is encountered. You might think that right at the start of your context should be enough, and since the engraver responsible for overrides is pretty much at the top of the engraver list, you are almost right, namely if every context involved in iteration starts at the same moment of time. But this is not always the case. Most notably, \grace notes in other contexts can start earlier.

A context modification has the additional advantage that you can use it in layout definitions, and have _all_ contexts of a given type automatically be created with the right settings. This is more convenient and less prone to user error than using an override every time.

\layout {
  \context {
    \Staff
    \settingsFrom { \accidentalStyle "dodecaphonic" }
  }
}

{ cis cis cis cis }





reply via email to

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