Hi,

Try

\version "2.24.2"

textArray = <<
  { \lyricmode { \set stanza = "1" fo -- o bar } }
  { \lyricmode { \set stanza = "2" fo -- o bar } }
>>

\score {
  <<
    \new Voice = "soprano" { c'1 1 1 }
    #@(map (lambda (mus) #{ \new Lyrics { \lyricsto "soprano" { #mus } } #})
           (ly:music-property textArray 'elements))
  >>
}


You may want to read
https://extending-lilypond.gitlab.io/en/extending/intro.html#inserting-scheme-inside-lilypond
about the #@ operator.

Best
Jean

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to