]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fixed spacing in space-alist; issue 1785
authorKeith OHara <k-ohara5a5a@oco.net>
Sun, 21 Aug 2011 05:15:52 +0000 (22:15 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Sun, 21 Aug 2011 19:00:00 +0000 (12:00 -0700)
The 'fixed' distance was intended to limit compressibility.

input/regression/tablature-full-notation.ly
lily/staff-spacing.cc
scm/define-grobs.scm

index 8e31540b88e0544b14969860bfe8bd8785217cbf..0b7e0646fdaea5fae057376310fbdefdcb474449 100644 (file)
@@ -13,9 +13,8 @@ tabstuff = {
   f4\f g a^\fermata |
   R2.*3 |
   c8\<\( c16 c ~ c2\! |
-  c'2.\) |
   \mark \default
-  R2. |
+  c'2.\) |
   \ottava #1
   r4 d'4 r8 e |
   \ottava #0
index 00c9abd6dcf16828c55241e997bcb6da2c319bad..7c4ece46433c5f6be6477a52bc0d3d492d331f3f 100644 (file)
@@ -214,6 +214,7 @@ Staff_spacing::get_spacing (Grob *me, Grob *right_col, Real situational_space)
 
   Spring ret (ideal, min_dist);
   ret.set_inverse_stretch_strength (max (0.0, stretchability));
+  ret.set_inverse_compress_strength (max (0.0, ideal - fixed));
   return ret;
 }
 
index 680f1598af68a6e07181e61d16b490e6e34c128d..2dbaa4c2e7709e7c9dd4afd78d15ebd4ab2fb32e 100644 (file)
                        (key-signature . (extra-space . 0.5))
                        (cue-clef . (extra-space . 0.5))
                        (right-edge . (extra-space . 0.5))
-                       (first-note . (fixed-space . 2.5))))
+                       (first-note . (semi-fixed-space . 2.5))))
        (stencil . ,ly:key-signature-interface::print)
        (extra-spacing-width . (0.0 . 0.5))
        (Y-offset . ,ly:staff-symbol-referencer::callback)
                        (staff-bar . (extra-space . 1.1))
                        (cue-clef . (extra-space . 0.5))
                        (right-edge . (extra-space . 0.5))
-                       (first-note . (fixed-space . 2.5))))
+                       (first-note . (semi-fixed-space . 2.5))))
        (stencil . ,ly:key-signature-interface::print)
        (extra-spacing-width . (0.0 . 0.5))
        (Y-offset . ,ly:staff-symbol-referencer::callback)
        (non-musical . #t)
        (space-alist . (
                        (cue-clef . (extra-space . 1.5))
-                       (first-note . (fixed-space . 2.0))
+                       (first-note . (semi-fixed-space . 2.0))
                        (right-edge . (extra-space . 0.5))
                        (staff-bar . (minimum-space . 2.0))))
        (stencil . ,ly:time-signature::print)