X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fapply-context.ly;h=7b838a5f1db71974680c8a959463f954b6665bb3;hb=51159f8679de00e6cd526ca2a16e1ea4d4294f81;hp=9e6320ef62cb4d290141cc3398973b1bc62f3dbb;hpb=e9bd265943d37689b1a6892217cb6f67bbe69f73;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index 9e6320ef62..7b838a5f1d 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,10 +1,10 @@ -#(ly:set-option 'old-relative) -\version "1.9.1" + +\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 }}