]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
* scripts/convert-ly.py (conv): remove \notes.
[lilypond.git] / input / regression / apply-context.ly
index 328f6397435ddf1dab86586bceb5d2e3d0f4e81e..7b838a5f1db71974680c8a959463f954b6665bb3 100644 (file)
@@ -1,10 +1,10 @@
 
-\version "1.9.8"
+\version "2.3.4"
 
 
 \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.
 
@@ -17,7 +17,7 @@ This example prints a bar-number during processing on stdout.
     \paper { raggedright= ##t }
 
 
-\score { \notes \relative c'' {
+\score {  \relative c'' {
     c1 c1
 
     %% todo: should put something interesting in the .tex output.
@@ -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
 }}