bug-lilypond
[Top][All Lists]
Advanced

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

associatedVoice in multi-staff score


From: Thomas Morley
Subject: associatedVoice in multi-staff score
Date: Sat, 4 Apr 2020 11:44:01 +0200

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



reply via email to

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