X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=input%2Fregression%2Fapply-context.ly;h=90ebff0c99ac432760aeae1795313a2aea9bcae2;hb=c3b51542671a9af5647d4cbc63f7c8ae98c1c2bd;hp=f3fe9a0775313ac20bee615f0a34e28228bdef35;hpb=3d47b0450c8c3e488a375b3d143460aec5bc1f3b;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index f3fe9a0775..90ebff0c99 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,22 +1,30 @@ -\version "1.7.23" + +\version "2.19.21" \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. " +octavation. + + +This example prints a bar-number during processing on stdout. +" } -\score { \notes \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:get-context-property tr 'currentBarNumber))) - c1 c1 -}} +\layout { ragged-right= ##t } + + +\relative { + c''1 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 +}