[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Re: Vertical position of cue instrument names
From: |
Reinhold Kainhofer |
Subject: |
[PATCH] Re: Vertical position of cue instrument names |
Date: |
Sun, 4 May 2008 19:40:42 +0200 |
User-agent: |
KMail/1.9.9 |
Am Sonntag, 4. Mai 2008 schrieb Trevor Daniels:
> Hi Reinhold
>
> These fix most of the problems:
>
> \override InstrumentSwitch #'outside-staff-priority = 100
> \override InstrumentSwitch #'self-alignment-X = #LEFT
>
> but not the baseline alignment.
...and not the way too large padding between the staff and the instrument
name. But thanks for your hints, I could track down how bad the current
defaults for InstrumentSwitch are:
-) no outsize-staff-priority => placed at fixed position
-) staff-padding set to 2, which means that the instrument name was placed
half a staff away! I suppose 0.5 would make much more sense (or maybe
somthing up t o1, but nothing larger than that! I find a spaff-padding of 1
already too large.)
-) center-aligned on the note they apply to (=> unusable for longer names)
Attached is a patch, which changes the defaults for InstrumentSwitch to more
sensible values:
-) outside-staff-priority set to 500
-) staff-padding reduced to 0.5
-) left-aligned on the note (actually, in the hand-engraved scores that I
have, most fo the cue instrument names are neither center-aligned nor
left-aligned on the note, but rather left aligned at the start of the
measure...)
Okay to apply?
Unfortunately, there is still one case, where I run into problems: If I have a
cue voice with #UP and a \set Voice.instrumentCueName to indicate the
instrument name, then the first note is sometimes (in particular, when the
beams/notes go outside the upper edge of the staff) stretched to the whole
length of the instrument name. Attached is an example showing the effects of
the patch: The instrument names are shown outside all other elements (due to
outside-staff-priority set to a value as high as 500 to be outside of
dynamics, too). The fourth measure shows the problem I described in this
paragraph.
> Wasn't there a discussion about
> this a couple of months ago?
No, not about this issue. There was the missing side-axis of InstrumentSwitch
(http://lists.gnu.org/archive/html/lilypond-devel/2008-02/msg00173.html,
which only caused a warning, but no other problem), and there were collisions
with the CombineTextScript grob, which was missing a setting for avoid-slur.
Cheers,
Reinhold
PS: If one leaves in center-alignment, the spacing problem becomes even worse:
the first note of a measure will not start until the center of the instrument
name, leaving huge gaps in there! To try it out, simply change LEFT to CENTER
in the .ly file...
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
0001-Improve-defaults-for-InstrumentSwitch.patch
Description: Text Data
cue_instrument_name_alignment.ly
Description: Text Data
cue_instrument_name_alignment.pdf
Description: Adobe PDF document