If you have one \header{...} block at the top level of the file and another one included withing \score{...}, it seems that LilyPond combines the settings from both these header blocks. This may be a solution to your problems, since you could simply have a file with \header{ title = "Mary Had a Little Lamb" composer = "Who knows?" ... } that you include in all your .ly files and then you add the additional information in the \score{ ... \header{ instrument = "trombone" } }
I think it would be a nice feature if it was possible to have several \header blocks also at the top level of a file where each new header block only added to the existing settings (if the same field is defined in several blocks, the latest one should hold, preferably with a warning print out).
/Mats
Cameron Horsburgh wrote:
Hi folks,
Thanks to the authors for a great piece of software! I'm actually able to hold my head up when I take my arrangements to band...!
There is one thing that I would love to be able to do. The band I arrange for has around 15 different parts. I have two separate files for each instrument, for example trombone.ly (which is a top level file) and trombone.notes (which holds the \notes block). I also have a score.ly file which calls all the separate \notes blocks to produce a score. (The ability to do this is very nice and far more intuitive than anything else I've used.)
This works very well, but I get frustrated managing the \header block in each .ly file. I can produce the \header block with simple cutting and pasting, but any subsequent changes are annoying, especially if they're only experimental.
I tried to get around this by creating another file called 'commonheadings.' This consisted of a definition:
commonheader = title = "Mary Had a Little Lamb"
composer = "Who knows?"
and so on. I called the file in an \include statement and then tried
\header { commonheader instrument = "trombone" }
but I got the error
syntax error, unexpected '=': title = "Mary Had a Little Lamb"
I also tried defining the commonheader block as a header block, but this wasn't allowed either.
Is there any way to achieve this? FYI, I'm using the current Debian version of 2.0.1.
Thanks in advance for your help.
Cameron
_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
-- ============================================= 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 =============================================
_______________________________________________ bug-lilypond mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-lilypond