X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fapply-context.ly;h=b83c906bd5c5626033ac65f1fb20a97622cb7cf3;hb=37b502a6f5030f9801a070f3aa68be08b4024350;hp=0b9c57712cc64210c4acea3b131991ba110c7c08;hpb=d6ea2dbcdb39dd65c7fd423782fa31ccbdaf34a9;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index 0b9c57712c..b83c906bd5 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,10 +1,10 @@ -\version "1.9.1" +\version "2.14.0" \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. @@ -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:get-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 +}