]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
*** empty log message ***
[lilypond.git] / input / regression / apply-context.ly
index 7502c35f9996e107e2dae11f932ed45be81b8eda..50a6807de6c6b00ca08f4103b59895109881721d 100644 (file)
@@ -1,10 +1,10 @@
 
-\version "1.9.2"
+\version "2.2.0"
 
 
 \header {
 
-texidoc = "With \\applycontext, \\properties can be modified
+texidoc = "With @code{\\applycontext}, @code{\\properties} can be modified
 procedurally. Applications include: checking bar numbers, smart
 octavation.
 
@@ -25,6 +25,6 @@ This example prints a bar-number during processing on stdout.
     \applycontext
        #(lambda (tr)
         (format #t "\nWe were called in barnumber ~a.\n"
-         (ly:get-context-property tr 'currentBarNumber)))
+         (ly:context-property tr 'currentBarNumber)))
     c1 c1
 }}