[Top][All Lists]
[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: |
Mon, 14 Feb 2011 00:18:32 +0000 |
Comment #11 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 another version that is even tighter.
% -------------8<--------------------------
\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 . 12))
} <<
\new Voice = "upper" { \upperMel }
>>
\new Lyrics = "upper" \with {
\override VerticalAxisGroup #'staff-affinity = #UP
\override VerticalAxisGroup #'nonstaff-nonstaff-spacing
#'minimum-distance = #0
\override VerticalAxisGroup #'nonstaff-nonstaff-spacing
#'stretchability = #1000
} \lyricsto "upper" \upperLyr
%
\new Lyrics = "common" \with {
\override VerticalAxisGroup #'staff-affinity = #CENTER
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
#'basic-distance = #6
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
#'stretchability = #0
\override VerticalAxisGroup #'nonstaff-nonstaff-spacing
#'minimum-distance = #0
\override VerticalAxisGroup #'nonstaff-unrelatedstaff-spacing
#'stretchability = #1000
\override VerticalAxisGroup #'nonstaff-nonstaff-spacing
#'stretchability = #1000
} \lyricsto "upper" \commonLyr
%
\new Lyrics = "lower" \with {
\override VerticalAxisGroup #'staff-affinity = #DOWN
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
#'basic-distance = #2
\override VerticalAxisGroup #'nonstaff-relatedstaff-spacing
#'stretchability = #0
} \lyricsto "upper" \lowerLyr
%
\new Staff = "lowers" <<
\new Voice = "lower" { \lowerMel }
>>
>>
%
\layout {
\context {
\Lyrics
% \override VerticalAxisGroup
% #'nonstaff-nonstaff-spacing #'stretchability = #10
}
}
}
% -------------8<--------------------------
Attachments:
lyric-align-new-closer.png 13.9 KB