From 676ed1a4aa236ea57a2cee85b05ce5aa56003573 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 4 May 2008 19:26:09 +0200 Subject: [PATCH] Improve defaults for InstrumentSwitch -) 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 --- scm/define-grobs.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index a0c67b833b..3138b96441 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -835,14 +835,16 @@ (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)))))) -- 2.39.5