]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/apply-context.ly
(brew_molecule): cleaned up Cluster code and
[lilypond.git] / input / regression / apply-context.ly
1 \header {
2
3 texidoc = "with \\applycontext, \\properties can be modified
4 procedurally. Applications include: checking bar numbers, smart
5 octavation. "
6
7 }
8
9 \score { \notes \relative c'' {
10     c1 c1
11
12     %% todo: should put something interesting in the .tex output.
13     
14     \applycontext
15         #(lambda (tr)
16          (format #t "\nWe were called in barnumber ~a.\n"
17           (ly:get-context-property tr 'currentBarNumber)))
18     c1 c1
19 }}