]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
Merge commit 'origin' into beamlets2
[lilypond.git] / input / regression / apply-context.ly
index 874e4a47e24ef606f579bdb474bdfc5076b9f8ed..afa55683f3ac68de3fa05d86946723bca280cbbf 100644 (file)
@@ -1,10 +1,10 @@
 
-\version "2.4.0"
+\version "2.12.0"
 
 
 \header {
 
-texidoc = "With @code{\\applycontext}, @code{\\properties} can be modified
+texidoc = "With @code{\\applyContext}, @code{\\properties} can be modified
 procedurally. Applications include: checking bar numbers, smart
 octavation.
 
@@ -14,17 +14,17 @@ This example prints a bar-number during processing on stdout.
 
 }
 
-    \layout { raggedright= ##t }
+\layout { ragged-right= ##t }
 
 
-\score {  \relative c'' {
-    c1 c1
+\relative c'' {
+  c1 c1
 
-    %% todo: should put something interesting in the .tex output.
-    
-    \applycontext
-       #(lambda (tr)
-        (format #t "\nWe were called in barnumber ~a.\n"
-         (ly:context-property tr 'currentBarNumber)))
-    c1 c1
-}}
+  %% todo: should put something interesting in the .tex output.
+  
+  \applyContext
+  #(lambda (tr)
+    (ly:progress "\nWe were called in bar number ~a.\n"
+     (ly:context-property tr 'currentBarNumber)))
+  c1 c1
+}