release commit
[lilypond.git] / input / test / scheme-interactions.ly
blob82dfb306dd85ab4ccf011e0a5e455339ac63b219
1 #(ly:set-option 'old-relative)
2 \version "2.1.7"
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.
11 " }
13 foo = \notes \transpose c c { d''4-. }
14 bra = \notes \transpose c c { e'4-. }
17 \score {
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)))
22 (empty-music))
24 \baz
27 \paper {raggedright=##t}