X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fapply-context.ly;h=abcbd3028165077e2555452d23d8ce2ade465238;hb=627f9598585b3ced56e92b6c9aae22ec6c31adfa;hp=a9e61b8d272a71cad15aaca7642eb8aebe92784e;hpb=9c31b0d42a407a412a324a6586cfb0437de4bfd8;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index a9e61b8d27..abcbd30281 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,10 +1,10 @@ -\version "2.1.36" +\version "2.10.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 +}