]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/bar-number-every-five-reset.ly
* lily/include/paper-system.hh (class Paper_system): remove
[lilypond.git] / input / test / bar-number-every-five-reset.ly
index 2a68dd0c71c28708419995561d1a4cca3bb3249e..9fbb860115262185f45b7d31dca6a9b1bcc14d4d 100644 (file)
@@ -1,30 +1,30 @@
-\version "1.7.18"
-% renamed file to bar-number-every-five-reset.ly from bar-number-every-5-reset.ly
-% so that bar-number-every-fifth.ly will appear before this file.
+\version "2.7.10"
 
 \header {
     texidoc = "@cindex Bar Number Every Fifth Reset
 If you would like the bar numbers to appear at regular intervals, but
-not starting from measure zero, you can use the context function,
-@code{set-bar-number-visibility}, to automatically set
-@code{barNumberVisibility} so that the bar numbers appear at regular
-intervals, starting from the @code{\applycontext}.
+not starting from measure zero, you can use a context function,
+@code{set-bar-number-visibility}, to set automatically
+@code{barNumberVisibility}, so that the bar numbers appear at regular
+intervals, starting from the measure in which 
+@code{set-bar-number-visibility} is set using @code{\applyContext}.
 "
 
 }
 
-resetBarnum = \context Score \applycontext
+resetBarnum = \context Score \applyContext
   #(set-bar-number-visibility 4)
 \score {
-    <
-        \notes \transpose c c'' {
-           \property Score.BarNumber \override #'break-visibility =#end-of-line-invisible
-           \property Score.RehearsalMark \override #'padding = #2.5
+    <<
+         \transpose c c'' {
+           \override Score.BarNumber  #'break-visibility =#end-of-line-invisible
+           \override Score.RehearsalMark  #'padding = #2.5
            \mark "A" \resetBarnum
            \repeat unfold 10 c1
            \mark \default \resetBarnum
            \repeat unfold 8 c
             \bar "|."
         }
-    >
+    >>
+\layout{raggedright = ##t}
 }