| 1 |
#(define foo) |
| 2 |
|
| 3 |
#(define-music-function (parser location notes) (ly:music?) #{ |
| 4 |
% Yes! You can embed LilyPond in Scheme. |
| 5 |
\override Score.Stem.beamlet-max-length-proportion = #'(0.5 . 0.5) |
| 6 |
#}) |
| 7 |
|
| 8 |
##t |
| 9 |
|
| 10 |
#"s t r i n g" |
| 11 |
|
| 12 |
---------------------------------------------------- |
| 13 |
|
| 14 |
[ |
| 15 |
["embedded-scheme", [ |
| 16 |
["punctuation", "#"], |
| 17 |
["scheme", [ |
| 18 |
["punctuation", "("], |
| 19 |
["keyword", "define"], |
| 20 |
" foo", |
| 21 |
["punctuation", ")"] |
| 22 |
]] |
| 23 |
]], |
| 24 |
|
| 25 |
["embedded-scheme", [ |
| 26 |
["punctuation", "#"], |
| 27 |
["scheme", [ |
| 28 |
["punctuation", "("], |
| 29 |
["function", "define-music-function"], |
| 30 |
["punctuation", "("], |
| 31 |
["function", "parser"], |
| 32 |
" location notes", |
| 33 |
["punctuation", ")"], |
| 34 |
["punctuation", "("], |
| 35 |
["function", "ly:music?"], |
| 36 |
["punctuation", ")"], |
| 37 |
["embedded-lilypond", [ |
| 38 |
["punctuation", "#{"], |
| 39 |
["lilypond", [ |
| 40 |
["comment", "% Yes! You can embed LilyPond in Scheme."], |
| 41 |
["keyword", [ |
| 42 |
["punctuation", "\\"], |
| 43 |
"override" |
| 44 |
]], |
| 45 |
" Score", |
| 46 |
["punctuation", "."], |
| 47 |
"Stem", |
| 48 |
["punctuation", "."], |
| 49 |
"beamlet-max-length-proportion ", |
| 50 |
["operator", "="], |
| 51 |
["embedded-scheme", [ |
| 52 |
["punctuation", "#"], |
| 53 |
["scheme", [ |
| 54 |
["punctuation", "'"], |
| 55 |
["punctuation", "("], |
| 56 |
["number", "0.5"], |
| 57 |
" . ", |
| 58 |
["number", "0.5"], |
| 59 |
["punctuation", ")"] |
| 60 |
]] |
| 61 |
]] |
| 62 |
]], |
| 63 |
["punctuation", "#}"] |
| 64 |
]], |
| 65 |
["punctuation", ")"] |
| 66 |
]] |
| 67 |
]], |
| 68 |
|
| 69 |
["embedded-scheme", [ |
| 70 |
["punctuation", "#"], |
| 71 |
["scheme", [ |
| 72 |
["boolean", "#t"] |
| 73 |
]] |
| 74 |
]], |
| 75 |
|
| 76 |
["embedded-scheme", [ |
| 77 |
["punctuation", "#"], |
| 78 |
["scheme", [ |
| 79 |
["string", "\"s t r i n g\""] |
| 80 |
]] |
| 81 |
]] |
| 82 |
] |
| 83 |
|
| 84 |
---------------------------------------------------- |
| 85 |
|
| 86 |
Checks for Scheme code embedded in LilyPond. |