]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
*** empty log message ***
[lilypond.git] / input / regression / apply-context.ly
index 1a0feef3278a4decb1a5db82999016ecb77b2ecc..50a6807de6c6b00ca08f4103b59895109881721d 100644 (file)
@@ -1,9 +1,10 @@
-\version "1.7.23"
+
+\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.
 
@@ -24,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
 }}