bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 1208 in lilypond: Some combination of 'staff-affinity for two


From: lilypond
Subject: Re: Issue 1208 in lilypond: Some combination of 'staff-affinity for two Lyrics may cause unwanted vertical space
Date: Sun, 13 Feb 2011 14:02:59 +0000


Comment #10 on issue 1208 by address@hidden: 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




reply via email to

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