1 #(ly
:set-option
'old-relative
)
3 \header { texidoc
= "@cindex Scheme Interactions
4 With @code{ly:export}, you can pass of the result of
5 Scheme expressions as lilypond input. Within a Scheme expression,
6 you can use, define or change lilypond variables.
8 In this example, the E-s and D-s are generated using scheme functions,
9 and woven together with manually entered C-s.
13 foo
= \notes \transpose c c { d''4-
. }
14 bra
= \notes \transpose c c { e'4-
. }
18 \context Voice
\notes\relative c' {
20 #(ly
:export
(make-sequential-music
(list foo foo foo
)))
21 #(begin
(define baz
(make-simultaneous-music
(list foo bra
)))
27 \paper {raggedright
=##t
}