]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
* lily/pfb.cc (LY_DEFINE): ly:ttf->pfa, new function.
[lilypond.git] / input / regression / apply-context.ly
index 4b3b45c971c75acc981957021a8e380af45e4808..874e4a47e24ef606f579bdb474bdfc5076b9f8ed 100644 (file)
@@ -1,9 +1,10 @@
-\version "1.7.23"
+
+\version "2.4.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.
 
@@ -13,10 +14,10 @@ This example prints a bar-number during processing on stdout.
 
 }
 
-    \paper { raggedright= ##t }
+    \layout { raggedright= ##t }
 
 
-\score { \notes \relative c'' {
+\score {  \relative c'' {
     c1 c1
 
     %% todo: should put something interesting in the .tex output.
@@ -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
 }}