The syntax already exists:
\new Staff \with{...}{...}
What could be added is a warning printout saying that the setting does
not have any effect, if it's done after the creation of the context.
/Mats
Juergen Reuter wrote:
On Tue, 21 Feb 2006, Han-Wen Nienhuys wrote:
...
there is only 1 SpacingSpanner in the entire score. You can only
override it at the start.
Just a half-baken, weired idea (and not at all thoroughly thought
through): Are there much more examples of properties that can be
overridden only once at start? For example, StaffSymbol #'line-count
comes into my mind. If yes, and if the syntax for 3.0 will change
anyway heavily, you may want to model these properties as arguments
that are passed to a context upon instantiation, maybe something like:
\new Staff = "chant" [StaffSymbol #'line-count = #4] { \myMusic }
If the user tries to modify line-count at any other place than at
context instantiation, lily could emit an error, saying that this
property may only be initialized once at context instantiation.
However, if there are only very few such properties, then it's
probably not at all worth introducing a new syntactical construct.
Greetings,
Juergen
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel