]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/vertical-extent.ly
Fix #362 (2)
[lilypond.git] / input / test / vertical-extent.ly
index ca2cca84e84a97d330edb5002366a335aff5baf1..b46f3ac123db60b2faaabad89941c3b7277cb3fd 100644 (file)
@@ -1,28 +1,37 @@
-\version "1.9.2"
+\version "2.10.0"
 % TODO: huh?  what's this file about?  -gp
+% This file shows that Staff grobs can get very deep or high; there is a lot
+% of room between the staves. 
 
 \header { texidoc = "
-Vertical extents may be overriden by
-minimumVerticalExtent, extraVerticalExtent, and  verticalExtent. These are
-normal property values, and are written into the grob when the
-associated context finishes, so using it in \property works.
+Vertical extents may increased by setting @code{\override VerticalAxisGroup #'minimum-Y-extent}, 
+@code{extra-Y-extent}, and @code{Y-extent}. In this example,
+@code{Y-extent} is increased.
 " }
 
 \score {
-  \notes  <
+    <<
+    \new Staff {
+      \override Staff.VerticalAxisGroup #'Y-extent = #'(-15.0 . 0.0)
+      \clef alto
+      a1^"15-deep staff"
+    }
+    \new Staff {
+      \clef alto
+      b1
+    }
     \new Staff {
-      \property Staff.verticalExtent = #'(-15.0 . 0.0)
       \clef alto
       c1
     }
     \new Staff {
-      \property Staff.verticalExtent = #'(-0.0 . 15.0)
       \clef alto
-      g1
+      \override Staff.VerticalAxisGroup #'Y-extent = #'(-0.0 . 10.0)
+      d1^"10-high staff"
     }
-  >
-  \paper{
-      raggedright = ##t
+  >>
+  \layout{
+      ragged-right = ##t
   }
 }