Dear all,
since the advent of 2.19.50, it is possible to attach lyrics to
different contexts than just a voice: "The \addlyrics function now
works with arbitrary contexts incuding Staff."
Indeed, for Staves, it works like a charm AFAICS. However, when
attached to a ChoirStaff, GrandStaff or StaffGroup, no extenders are
generated. (Nb: the *alignment* with notes / music columns works
perfectly fine, just the extender generation fails.)
Attached is a test case. The lyrics lines for the three multi-staff
contexts should look like the single-staff line, as far as I can tell.
Best,
Alexander
\version "2.19.50"
\paper { ragged-last = ##f }
one = { b'8 4 8( 4) 4 }
two = { \autoBeamOff g'8 8 8 8~ 8[ 8] 8[ 8] }
lyrOne = \lyricmode { Foo bar xyzzy. __ Foo! }
lyrTwo = \lyricmode { Foo bar __ _ xyzzy. __ Foo! __ }
commonLyr = \lyricmode { Foo bar __ _ xyzzy. __ _ Foo! __ _ }
beats = \lyricmode { ^ ^ ^ ^ ^ ^ ^ }
\score {
<<
\new Staff = "staff" <<
\new Voice = "VoiceOne" { \voiceOne \one }
\new Voice = "VoiceTwo" { \voiceTwo \two }
>>
\new Lyrics \with { alignAboveContext = "staff" } \lyricsto "VoiceOne" { \set stanza = "1st Voice" \lyrOne }
\new Lyrics \with { alignAboveContext = "staff" } \lyricsto "VoiceOne" { \beats }
\new Lyrics \lyricsto "VoiceTwo" { \set stanza = "2nd Voice" \lyrTwo }
\new Lyrics \lyricsto "VoiceTwo" { \beats }
\new Staff = "Staff" <<
\new Voice { \voiceOne \one }
\new Voice { \voiceTwo \two }
>>
\new Lyrics \lyricsto Staff = "Staff" { \set stanza = "Staff" \commonLyr }
\new Lyrics \lyricsto Staff = "Staff" { \beats }
\new ChoirStaff = "ChoirStaff" <<
\new Staff = "upperCS" { \new Voice { \one } }
\new Staff = "lowerCS" { \new Voice { \two } }
>>
\new Lyrics \with { alignAboveContext = "lowerCS" } \lyricsto ChoirStaff = "ChoirStaff" { \set stanza = "ChoirStaff" \commonLyr }
\new Lyrics \with { alignAboveContext = "lowerCS" } \lyricsto ChoirStaff = "ChoirStaff" { \beats }
\new GrandStaff = "GrandStaff" <<
\new Staff = "upperGS" { \new Voice { \one } }
\new Staff = "lowerGS" { \new Voice { \two } }
>>
\new Lyrics \with { alignAboveContext = "lowerGS" } \lyricsto GrandStaff = "GrandStaff" { \set stanza = "GrandStaff" \commonLyr }
\new Lyrics \with { alignAboveContext = "lowerGS" } \lyricsto GrandStaff = "GrandStaff" { \beats }
\new StaffGroup = "StaffGroup" <<
\new Staff = "upperSG" { \new Voice { \one } }
\new Staff = "lowerSG" { \new Voice { \two } }
>>
\new Lyrics \with { alignAboveContext = "lowerSG" } \lyricsto StaffGroup = "StaffGroup" { \set stanza = "StaffGroup" \commonLyr }
\new Lyrics \with { alignAboveContext = "lowerSG" } \lyricsto StaffGroup = "StaffGroup" { \beats }
>>
}_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond