X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fapply-context.ly;h=afa55683f3ac68de3fa05d86946723bca280cbbf;hb=5351678f4821374c9cbaf55b92cd35436d786c1d;hp=50a6807de6c6b00ca08f4103b59895109881721d;hpb=3684e949054183e4a31e17f5e7ab0bf30da0123e;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index 50a6807de6..afa55683f3 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,10 +1,10 @@ -\version "2.2.0" +\version "2.12.0" \header { -texidoc = "With @code{\\applycontext}, @code{\\properties} can be modified +texidoc = "With @code{\\applyContext}, @code{\\properties} can be modified procedurally. Applications include: checking bar numbers, smart octavation. @@ -14,17 +14,17 @@ This example prints a bar-number during processing on stdout. } - \paper { raggedright= ##t } +\layout { ragged-right= ##t } -\score { \notes \relative c'' { - c1 c1 +\relative c'' { + c1 c1 - %% todo: should put something interesting in the .tex output. - - \applycontext - #(lambda (tr) - (format #t "\nWe were called in barnumber ~a.\n" - (ly:context-property tr 'currentBarNumber))) - c1 c1 -}} + %% todo: should put something interesting in the .tex output. + + \applyContext + #(lambda (tr) + (ly:progress "\nWe were called in bar number ~a.\n" + (ly:context-property tr 'currentBarNumber))) + c1 c1 +}