]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/maximum-rest-count.ly
(topdocs-web): New target.
[lilypond.git] / input / test / maximum-rest-count.ly
index cbb02a484bdee49c2ae4eb1b13ebc42eea7dfcf9..5aa47fa3ea60b868ed3bcc66e01dcf6a54e50ea3 100644 (file)
@@ -1,21 +1,43 @@
-\score{
-\context Staff \notes\relative c''{
-< a4 c e >
-< r r r >
-\property Staff.maximumRestCount = #3
-< r r r >
-\property Staff.maximumRestCount = #2
-< r r r >
-\property Staff.maximumRestCount = #1
-< r r r >
-\property Staff.maximumRestCount = #0
-< r r r >
-% urg
-r
-}
-\paper{
-}
-\midi{
-\tempo 1 = 60;
+\version "1.7.18"
+% possible rename to rest-foo
+\header {
+    texidoc = "@cindex Rest Collision Count
+Control the number of rests in a collision with maximum-rest-count."
 }
+
+\score{
+\context Staff \notes\relative c''<
+       \context Voice = x {
+               a4 
+               r 
+               \property Staff. RestCollision \set #'maximum-rest-count = #1
+               r 
+               \property Staff. RestCollision \set #'maximum-rest-count = #2
+               r 
+               \property Staff. RestCollision \set #'maximum-rest-count = #3
+               r 
+               r8 r8
+               c
+       }
+       \context Voice = y {
+               c4
+               r
+               r 
+               r
+               r
+               r
+               r
+       }
+       \context Voice = z {
+               e4
+               r
+               r 
+               r
+               r
+               r
+               r
+       }
+       >
+       \paper{ raggedright = ##t }
 }
+