bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 1161 in lilypond: Lyrics is not centered with CENTER affinity if t


From: lilypond
Subject: Issue 1161 in lilypond: Lyrics is not centered with CENTER affinity if there is another Lyrics with one of UP or DOWN
Date: Wed, 30 Jun 2010 08:16:26 +0000

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-High

New issue 1161 by brownian.box: Lyrics is not centered with CENTER affinity if there is another Lyrics with one of UP or DOWN
http://code.google.com/p/lilypond/issues/detail?id=1161

It's not a regression. Please don't mind this "not too tiny example".

Some notes:

1. If there is another (non-empty!) lyrics context, attached to "lower" and aligned above lower staff (with DOWN affinity) — everything is ok. If it is empty (contains skips in this part of score) — all the same.

2. The same appears if upper lyrics is empty and lower non-empty — lyrics lines are raised up, lyrics line with CENTER is not centered.

3. If stretchability is not set — both lyrics are centered (which is, probably, ok).


In «real life scores» it is quite common (i believe) to type one common lyrics line (with CENTER affinity) and, sometimes, others with UP and/or DOWN affinity. So, in real life «centered» lyrics may be jumping constantly.

I found this «highly embarrassing», sorry .O(

% -------------8<--------------------------
\version "2.13.26"

lowerMel = \relative c '' {
  c4 c c c |
  R1 |
}

upperMel = \relative c'' {
  c4 c c c |
  c4 c c c |
}

upperLyr = \lyricmode {
  \repeat "unfold" 4 { \skip 1 }
  l l l l
}

commonLyr = \lyricmode {
  c c c c
}

\score {
  \new ChoirStaff <<
    \new Staff = "uppers" \with {
      \override VerticalAxisGroup #'next-staff-spacing =
        #'((space . 18))
    } <<
      \new Voice = "upper" { \upperMel }
    >>
    \new Lyrics = "upper" \with {
      \override VerticalAxisGroup #'staff-affinity = #UP
    } \lyricsto "upper" \upperLyr
    %
    \new Lyrics = "common" \with {
      \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "upper" \commonLyr
    %
    \new Staff = "lowers" <<
      \new Voice = "lower" { \lowerMel }
    >>
  >>
  %
  \layout {
    \context {
      \Lyrics
        \override VerticalAxisGroup
          #'inter-loose-line-spacing #'stretchability = #10
    }
  }
}
% -------------8<--------------------------

Attachments:
        centered-lyr-not-centered.png  1.8 KB


reply via email to

[Prev in Thread] Current Thread [Next in Thread]