lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please tear apart this example lead sheet template for traditional W


From: Jean Abou Samra
Subject: Re: Please tear apart this example lead sheet template for traditional Western folk tunes
Date: Wed, 23 Feb 2022 08:02:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0


Le 23/02/2022 à 02:14, Valentin Petzel a écrit :
Hi Simon,

note that to enable having multiple stanzas of lyrics the LY thing is not
music, but a list of music. In LISP a list either the empty list '() or a pair
(cons a b) where b is a list. Thus the list (a b c d) is in fact
(cons a (cons b (cons c (cons d '())))) or (a . (b . (c . (d . '()))) which
shorthands to (a b c d . '()). So if we were to use (list CN FB VC LY) this
would correspond to `(,CN ,FB ,VC ,LY). Let’s say CB = a, FB = b, VC = c, LY =
(d e). Then this would be (a b c (d e)). On the other hand using
`(,CN ,FB ,VC . ,LY) [which corresponds to (cons CN (cons FB (cons VC LY)))]
gives us (a b c d e), so a flat list.

We could also write this as (append (list CN FB VC) LY).


Also (cons* CN FB VC LY).

Best,
Jean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]