Hi,

this came out of the german forum:

The naive attempt to set associatedVoice for lyrics in a multi-Staff
score fails silently:

\version "2.20.0"

musI = { c'4 d' s2 }
musII = { s2 e'4 f' }
lyr = \lyricmode { foo \set associatedVoice = "v2" bar buzz puh }

<<
  \new Staff = "1" \new Voice = "v1" \musI
  \new Lyrics \lyricsto "v1" \lyr
  \new Staff = "2" \new Voice = "v2" \musII
>>

I suppose the v2-Voice is not fully "acknowledged" at the time Lyrics
tries to switch to it.
Instead one needs to put the Lyrics at the end and insert them at
correct position with alignAbove/BelowContext:

<<
  \new Staff = "1" \new Voice = "v1" \musI
  \new Staff = "2" \new Voice = "v2" \musII
  \new Lyrics
    \with { alignAboveContext = "2" }
    \lyricsto "v1" \lyr
>>

Not sure, if I'd call it a bug.
At least it should be documented, probably as "known issues and warnings"
Btw, all doc-examples and regtests using associatedVoice are singel-staff ones.
Should we add a multi-staff example?

Opinions?

Cheers,
  Harm

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

Reply via email to