Update .ly files.
[lilypond.git] / input / regression / apply-context.ly
blobafa55683f3ac68de3fa05d86946723bca280cbbf
2 \version "2.12.0"
5 \header {
7 texidoc = "With @code{\\applyContext}, @code{\\properties} can be modified
8 procedurally. Applications include: checking bar numbers, smart
9 octavation.
12 This example prints a bar-number during processing on stdout.
17 \layout { ragged-right= ##t }
20 \relative c'' {
21 c1 c1
23 %% todo: should put something interesting in the .tex output.
25 \applyContext
26 #(lambda (tr)
27 (ly:progress "\nWe were called in bar number ~a.\n"
28 (ly:context-property tr 'currentBarNumber)))
29 c1 c1