]> git.donarmstrong.com Git - lilypond.git/blob - input/test/scheme-interactions.ly
(conv): dashes rule.
[lilypond.git] / input / test / scheme-interactions.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.1"
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.
7
8 In this example, the E-s and D-s are generated using scheme functions,
9 and woven together with manually entered C-s.
10
11 " }
12
13 foo = \notes \transpose c c { d''4-. }
14 bra = \notes \transpose c c { e'4-. }
15
16
17 \score { 
18   \context Voice \notes\relative c' {
19       c4
20       #(ly:export (make-sequential-music (list foo foo foo )))
21       #(begin (define baz (make-simultaneous-music (list foo bra)))
22         (empty-music))
23       c4
24       \baz
25       c4
26   }
27         \paper {raggedright=##t}
28 }
29