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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to