X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fapply-context.ly;h=90ebff0c99ac432760aeae1795313a2aea9bcae2;hb=7515e9c36a25c513f94c19a7b3d15ff17ba68a84;hp=7b838a5f1db71974680c8a959463f954b6665bb3;hpb=51159f8679de00e6cd526ca2a16e1ea4d4294f81;p=lilypond.git diff --git a/input/regression/apply-context.ly b/input/regression/apply-context.ly index 7b838a5f1d..90ebff0c99 100644 --- a/input/regression/apply-context.ly +++ b/input/regression/apply-context.ly @@ -1,10 +1,10 @@ -\version "2.3.4" +\version "2.19.21" \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 { \relative c'' { - c1 c1 +\relative { + c''1 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 +}