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