Re: Scheme music function to expand lyrics

2013-04-06 Thread Yannick CHARLES
2013/4/6 Felix Janda > > On 04/06/13 at 02:14pm, Yannick CHARLES wrote: > > Hello ! > > > > Thank you for your answer and your suggestions. > > I plan anyways to use inclusion and to split my code between multiple > > files. > > My main problem is that the number of verses can vary between songs.

Re: Scheme music function to expand lyrics

2013-04-06 Thread Felix Janda
On 04/06/13 at 02:14pm, Yannick CHARLES wrote: > Hello ! > > Thank you for your answer and your suggestions. > I plan anyways to use inclusion and to split my code between multiple > files. > My main problem is that the number of verses can vary between songs. But a > solution to this could be to

Re: Scheme music function to expand lyrics

2013-04-06 Thread Yannick CHARLES
Hello ! Thank you for your answer and your suggestions. I plan anyways to use inclusion and to split my code between multiple files. My main problem is that the number of verses can vary between songs. But a solution to this could be to build the list in the lyric file, which is specific to each s

Re: Scheme music function to expand lyrics

2013-04-06 Thread Felix Janda
Hi, how about putting the lyrics into a list and looping over this list? Like: \version "2.16.0" one = \lyricmode {Some text } two = \lyricmode {more text } #(define rawlyrics (list #{ \one #} #{ \two #})) #(define packedlyrics (map (

Scheme music function to expand lyrics

2013-04-05 Thread Yannick CHARLES
Hello everybody ! I am working on a project involving a collection of songs and hymns, and I wanted to make the files more "generic", based on the song templates (i.e. verse-verse, verse-chorus...) Ideally I would like at some point in my source file to have a music function build the staves, and