]> git.donarmstrong.com Git - lilypond.git/commitdiff
Improve defaults for InstrumentSwitch
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 4 May 2008 17:26:09 +0000 (19:26 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 21 May 2008 16:04:06 +0000 (18:04 +0200)
-) Don't use a staff-padding of 2 (too far from the staff!), but rather 0.5
-) Left-align cue instrument names on the note they apply to (common practice
   is to left-align at the beginning of the measure, or sometimes even further
   to the left depending on the vertical extents of the cue voice).
   Center-aligned instrument names lead to all kinds of broken spacing, i.e.
   the first note will only start at half the width of the cue instrument
   name, even if that means a huge horizontal empty space!.
-) Add outside-staff-priority, so that collisions are automatically handled
-) Adjust extra-spacing-width to prevent ugly stretching of notes when
   beams got far above the staff

Okay'd by Joe Neeman on lilypond-devel

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
scm/define-grobs.scm

index a0c67b833b9b022e560c04d386cf059c0eb4450f..3138b964419eb27905c0f648cebe6c3888fa1542 100644 (file)
 
     (InstrumentSwitch
      . (
-       (padding . 0.3)
+       (padding . 0.5)
        (stencil . ,ly:text-interface::print)
        (Y-offset . ,ly:side-position-interface::y-aligned-side)
        (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
-       (staff-padding . 2)
+       (staff-padding . 0.5)
        (direction . ,UP)
        (side-axis . ,Y)
-       (self-alignment-X . ,CENTER)
+       (self-alignment-X . ,LEFT)
+       (outside-staff-priority . 500)
+       (extra-spacing-width . '(+inf.0 . -inf.0))
        (meta . ((class . Item)
                 (interfaces . (side-position-interface
                                font-interface))))))