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