[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include header conflicts
From: |
Christopher R. Maden |
Subject: |
Re: include header conflicts |
Date: |
Sun, 25 Nov 2012 21:06:12 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 11/25/2012 08:12 PM, Kieren MacMillan wrote:
> I've got an individual .ly file for each cue (song or orchestral
> interlude) in my musical. I want to include them in a complete
> score .ly file, but when I do that the header variables conflict
> (e.g., the first or last 'title' or 'piece' value gets printed in
> the header of all scores).
>
> It's probably something small that I'm doing wrong — so rather
> than try to build a minimal example, I was hoping someone out there
> might be able to diagnose the problem from past experience and give
> me a hint on how to solve it.
This should probably become a FAQ.
You need to split each cue into two files: foo_music.ly contains the
actual music (staves, notes, phrasing, etc.) and variable definitions
(e.g., fooTitle = "Foo"), while foo.ly has \include foo_music.ly and
the headers with things like title=\fooTitle). Then, in your complete
score, you \include all of the *_music.ly files with appropriate
headers for the full score.
~Chris
--
Chris Maden, text nerd <URL: http://crism.maden.org/ >
“Always remember where you came from, and honor your ancestry,
But don’t be afraid to defy anyone who would tell you what to be.”
— Chris Vaughan, “Freedom”
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9 A210 4A51 DBAC 5C5C 3D5E