[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditionally including lyrics
From: |
Marc Hohl |
Subject: |
Conditionally including lyrics |
Date: |
Fri, 02 Dec 2011 11:26:51 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 |
Hello list,
I have a lot of small music pieces with several stanzas which I store
like this
textA = \lyricmode {
\set stanza = "1. "
this is the first stan -- za.
}
textB = \lyricmode {
\set stanza = "2. "
and this one is the se -- cond.
}
textC = ...
together with the melody in files called data01.ily, data02.ily etc.
Now these files should be processed by some kind of generator file,
which consists of something like this:
\include "data01.ily"
\score {
\new Staff {
\new Voice { \melody }
\addlyrics { \textA }
\addlyrics { \textB }
\addlyrics { \textC }
}
}
Now the data files contain different numbers of stanzas, and ideally,
the generator file
should be intelligent enough to include all stanzas which are present.
Has someone an idea
how to create a loop which scans for textA, textB, textC etc. and puts a
command that acts like
\addlyrics for each hit?
I could do this with some shell scripting, but a lilypondish solution
would be better to
maintain, I think.
Thanks in advance,
Marc
- Conditionally including lyrics,
Marc Hohl <=
- Re: Conditionally including lyrics, David Kastrup, 2011/12/02
- Re: Conditionally including lyrics, Marc Hohl, 2011/12/02
- Re: Conditionally including lyrics, David Kastrup, 2011/12/02
- Re: Conditionally including lyrics, Marc Hohl, 2011/12/02
- Would you donate for structured Lilypond variables? (was: Conditionally including lyrics), David Kastrup, 2011/12/06
- Re: Would you donate for structured Lilypond variables?, Marc Hohl, 2011/12/06
- Re: Would you donate for structured Lilypond variables?, David Kastrup, 2011/12/06
Re: Conditionally including lyrics, Matthew Collett, 2011/12/02