[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme music function to expand lyrics
From: |
Felix Janda |
Subject: |
Re: Scheme music function to expand lyrics |
Date: |
Sat, 6 Apr 2013 12:33:49 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 (lambda (arg) #{
\new Lyrics \lyricsto "voice" $arg
#}) rawlyrics))
#(define alllyrics (make-simultaneous-music packedlyrics))
\score {
\new Staff <<
\new Voice = "voice" {
\relative c'' {c c }
}
\alllyrics
>>
\layout {}
}
------------------------------------------------------------
As an alternative to putting the score templates into a music function
one could also use "\include":
score.ily --------------------------------------------------
\version "2.16.0"
% Score template
\score {
\new Staff <<
\music
}
\layout {}
}
song1.ly ---------------------------------------------------
\version "2.16.0"
music = \relative c'' c
\include "score.ily"
------------------------------------------------------------
Felix