From: Joe Neeman Date: Sun, 4 Nov 2007 20:56:02 +0000 (+1100) Subject: Set max-stretch to zero by default. X-Git-Tag: release/2.11.35-1~41^2~11^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=31921aa4679bbdb0e7eaaf0dd4fbb8507ea91e1f;p=lilypond.git Set max-stretch to zero by default. --- diff --git a/Documentation/user/spacing.itely b/Documentation/user/spacing.itely index e33182425b..2c874d6bb7 100644 --- a/Documentation/user/spacing.itely +++ b/Documentation/user/spacing.itely @@ -974,8 +974,10 @@ After page breaks are determined, the vertical spacing within each system is reevaluated in order to fill the page more evenly; if a page has space left over, systems are stretched in order to fill that space. The amount of stretching can be configured though the @code{max-stretch} -property of the @internalsref{VerticalAlignment} grob. To disable this -stretching entirely, set @code{max-stretch} to zero. +property of the @internalsref{VerticalAlignment} grob. By default, +@code{max-stretch} is set to zero, disabling stretching. To enable +stretching, a sane value for @code{max-stretch} +is @code{ly:align-interface::calc-max-stretch}. In some situations, you may want to stretch most of a system while leaving some parts fixed. For example, if a piano part occurs in the @@ -997,7 +999,11 @@ the second piano staff: ragged-last-bottom = ##f } -\score { +\new Score \with +{ + \override VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch +} +{ \new GrandStaff << \new StaffGroup diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index ef27cbd1e3..a93a209eb7 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -2085,7 +2085,7 @@ (stacking-dir . -1) (padding . 0.5) (vertical-skylines . ,ly:axis-group-interface::combine-skylines) - (max-stretch . ,ly:align-interface::calc-max-stretch) + (max-stretch . 0) (meta . ((class . Spanner) (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common))) (interfaces . (align-interface