[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vertical alignment bug - Instrument_name_engraver
From: |
Erik Sandberg |
Subject: |
Re: Vertical alignment bug - Instrument_name_engraver |
Date: |
Fri, 21 Oct 2005 19:26:39 +0200 |
User-agent: |
KMail/1.8.3 |
On Friday 14 October 2005 20.58, Daniel Johnson wrote:
> Instrument_name_engraver has a problem calculating the correct Y-extent
> to which it applies, when it is applied to a staff-group rather than a
> single staff, and the bottom staff has lyrics attached to it. It
> calculates the Y-extent as being from the top staff to the bottom of the
> lyrics on the bottom staff. Consider the following snippet:
Not a bug. The lyrics context is part of the InnerChoirStaff context, and the
instrument name is centered relative the extents of that context.
You probably want to move the bottom-most lyrics context to outside that
context:
> %%% BEGIN LILYPOND CODE %%%
> \version "2.6.3" %Also tested with 2.7.12
>
> \paper { raggedright = ##t }
>
> text = \lyricmode { La La La }
>
> \score {
> <<
> \context ChoirStaff <<
> \context Staff = highVoices {
> \set Staff.instrument = "Soprano"
> \set Staff.instr = "S"
> \context Voice = sop {c'1 \break c'1 c'1}
> }
> \context Lyrics = sop \lyricsto sop \text
> \context InnerChoirStaff = lowVoices \with {\consists
> "Instrument_name_engraver"} {
> \set InnerChoirStaff.instrument = "Bass"
> \set InnerChoirStaff.instr = "B"
> <<
> \context Staff = baritone {
> \clef bass
> \context Voice = bari { g1 a1 g1 }
> }
> \context Lyrics = bari \lyricsto bari \text
> \context Staff = bass {
> \clef bass
> \context Voice = bass { c1 f1 c1 }
> }
>
> }
this line should be moved down -> \context Lyrics = bass \lyricsto bass \text
>
> }
> %%% END LILYPOND CODE %%%
>
--
Erik Sandberg
Maintainer of the Lilypond bug CVS archive,
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lily-bugs/bugs/
http://lilypond.org/bugs/v2.6/