[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Array variables and loops (for lyrics)
From: |
Jean Abou Samra |
Subject: |
Re: Array variables and loops (for lyrics) |
Date: |
Fri, 15 Sep 2023 17:41:57 +0200 |
User-agent: |
Evolution 3.48.4 (3.48.4-1.fc38) |
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
signature.asc
Description: This is a digitally signed message part