]> git.donarmstrong.com Git - lilypond.git/blob - input/test/scheme-interactions.ly
*** empty log message ***
[lilypond.git] / input / test / scheme-interactions.ly
1 \version "2.1.28"
2 \header { texidoc = "@cindex Scheme Interactions
3 Using @code{ly:export}, the result of Scheme expressions can be passed
4 as LilyPond input.  Within a Scheme expression, you can use, define or 
5 change the corresponding variables. In this example, the D-s and E-s are 
6 generated using scheme functions, and between there are manually 
7 (without Scheme) entered C-s.
8
9 " }
10
11 foo = \notes \transpose c c { d''4-. }
12 bra = \notes \transpose c c { e'4-. }
13
14
15 \score { 
16   \context Voice \notes\relative c' {
17       c4
18       #(ly:export (make-sequential-music (list foo foo foo )))
19       #(begin (define baz (make-simultaneous-music (list foo bra)))
20         (empty-music))
21       c4
22       \baz
23       c4
24   }
25         \paper {raggedright=##t}
26 }
27