Cameron Horsburgh wrote:
On Mon, 2004-05-10 at 18:14, Mats Bengtsson wrote:
Cc: bug-lilypond; feature request included below!
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" } }
Thanks for your prompt reply.
It works! Well, almost.
In the end I defined a separate file as you suggest. However, LilyPond doesn't like the new \header block in the \score block.
Just put it at the end of the \score{} block, after the music, \midi and \paper.
If I promote it to top level, it overrides the \include statement. Or, depending where exactly I put it, the \includes statement would override the \header block.
What to do? I could one or the other, but not both.
When all else fails try the inobvious. I put the \includes statement inside a top level \header block that included part specific fields.
Clever! You can have an \include more or less anywhere in a file, so that should clearly work.
And hey presto, it worked! Inobvious to me, but nice. I'd be quite happy to submit an example for inclusion in the example set, if anyone can tell me where to send it.
I't a bit hard to include in the existing set of examples, since these involve only one file for each example.
/Mats
_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
