]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/vertical-extent.ly
Fix #362 (2)
[lilypond.git] / input / test / vertical-extent.ly
index 42b9e63e2bd421317a801b6ab30fe5013b5d87b8..b46f3ac123db60b2faaabad89941c3b7277cb3fd 100644 (file)
@@ -1,31 +1,37 @@
-\version "1.7.18"
+\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
-verticalExtent, verticalExtent, 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  <
-    \context Staff = upper {
-      \property Staff.verticalExtent = #'(-15.0 . 0.0)
+    <<
+    \new Staff {
+      \override Staff.VerticalAxisGroup #'Y-extent = #'(-15.0 . 0.0)
       \clef alto
-      c1 \break c1 
+      a1^"15-deep staff"
     }
-    \context Staff = lower {
-      \property Staff.verticalExtent = #'(-0.0 . 15.0)
+    \new Staff {
       \clef alto
-      g1 \break g1 
+      b1
     }
-  >
-  \paper{
-    interscoreline = 13.0\mm
-    interscorelinefill = 0
-    \translator{\ScoreContext \remove "Bar_number_engraver"}
-    \translator{\StaffContext minimumVerticalExtent = #'(-2.0 . 2.0)}
+    \new Staff {
+      \clef alto
+      c1
+    }
+    \new Staff {
+      \clef alto
+      \override Staff.VerticalAxisGroup #'Y-extent = #'(-0.0 . 10.0)
+      d1^"10-high staff"
+    }
+  >>
+  \layout{
+      ragged-right = ##t
   }
 }
-%% new-chords-done %%
+