]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: Learning: Modify stretchability to use nested properties
authorCarl Sorensen <c_sorensen@byu.edu>
Sat, 13 Nov 2010 02:50:01 +0000 (19:50 -0700)
committerCarl Sorensen <c_sorensen@byu.edu>
Sat, 13 Nov 2010 02:50:37 +0000 (19:50 -0700)
Documentation/learning/fundamental.itely

index 47da080fb4cfcf0da78e65bdcff4f239841cd531..42fdf48c42ffa44235c1be7200f16a626c197be3 100644 (file)
@@ -2842,10 +2842,10 @@ Stretchability of staves can be controlled with the
 @q{grob}s within the lilypond documentation) -- don't worry about
 the details right now; this is fully explained later.  For the
 curious, have a look at @ruser{Overview of modifying properties}.
-Currently, it is not possible to modify the @code{stretchability}
-sub-property only, we thus have to copy the other sub-properties
-also.  Again, for the curious, you can find the default values in
-file @file{scm/@/define-grobs@/.scm} by looking up the definition
+In this case, we want to modify the @code{stretchability}
+sub-property only. Again, for the curious, you can find the
+default values for the staff-staff-spacing property
+in file @file{scm/@/define-grobs@/.scm} by looking up the definition
 of the @code{VerticalAxisGroup} grob.  The value for
 @code{stretchability} is taken from the definition of the
 @code{PianoStaff} context (in file @file{ly/@/engraver-init@/.ly})
@@ -2869,10 +2869,7 @@ so that the values are identical.
       >>  % end ManualOne Staff context
       \new Staff = "ManualTwo" \with @{
         \override VerticalAxisGroup
-          #'staff-staff-spacing = #'((space . 9)
-                                     (minimum-distance . 8)
-                                     (padding . 1)
-                                     (stretchability . 5))
+          #'staff-staff-spacing  #'stretchability = 5
       @} <<
         \keyTime
         \clef "bass"
@@ -2936,10 +2933,7 @@ PedalOrganMusic = \relative c {
       >>  % end ManualOne Staff context
       \new Staff = "ManualTwo" \with {
         \override VerticalAxisGroup
-          #'staff-staff-spacing = #'((space . 9)
-                                     (minimum-distance . 8)
-                                     (padding . 1)
-                                     (stretchability . 5))
+          #'staff-staff-spacing #'stretchability = 5
       } <<
         \keyTime
         \clef "bass"