Comment #10 on issue 1208 by carl.d.s...@gmail.com: Some combination of 'staff-affinity for two Lyrics may cause unwanted vertical space
http://code.google.com/p/lilypond/issues/detail?id=1208

Here's a file that seems to do what you'd like.

If this is acceptable, it will probably become a documentation fix.

%%%  Begin .ly file

\version "2.13.42"

lowerMel = \relative c '' {
  c4 c c c |
  a4 a a a |
  a4 a a a |
}

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

upperLyr = \lyricmode {
  \repeat unfold 4 { \skip 1 }
  u u u u
}

commonLyr = \lyricmode {
  c c c c
  \repeat unfold 4 {\skip 1}
  c c c c
}

lowerLyr = \lyricmode {
  \repeat unfold 4 { \skip 1 }
  l l l l
}


\score {
  \new ChoirStaff <<
    \new Staff = "uppers" \with {
      \override VerticalAxisGroup #'staff-staff-spacing =
        #'((basic-distance . 9))
    } <<
      \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
      \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
        #'basic-distance = #4.5
      \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
        #'stretchability = #0
    } \lyricsto "upper" \commonLyr
    %
    \new Lyrics = "lower" \with {
      \override VerticalAxisGroup #'staff-affinity = #DOWN
    } \lyricsto "upper" \lowerLyr
    %
    \new Staff = "lowers" <<
      \new Voice = "lower" { \lowerMel }
    >>
  >>
}
%%%% End

Attachments:
        lyrics-alignment-combined.png  14.5 KB


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to