lilypond-user
[Top][All Lists]
Advanced

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

Weirdness with \set associatedVoice


From: Michael Gerdau
Subject: Weirdness with \set associatedVoice
Date: Sun, 16 Dec 2018 12:41:16 +0100 (CET)

Hi list,

I have an issue with \set associatedVoice, namely it appears that there is a 
problem with initializing it. I have created a small example (see below) to 
show my problem.

Stanza 1 is what I want it to look like and for stanzas 2-5 I would have 
expected the same result (2 and 3 are identical except for the enclosing 
<<...>> instead of {...})

Is my understanding of what \set associatedVoice does flawed or is this a bug?

Kind regards,
Michael

===== start =====
\version "2.19.82"

\paper {
  ragged-right = ##f
}

musicOne = \repeat unfold 2 { c''8 4 4 4 8~ }
musicTwo = \repeat unfold 2 { c'4 4 4 4 }

one = \set associatedVoice = "one"
two = \set associatedVoice = "two"

verse = \lyricmode { both \repeat unfold 8 { \one one \two two } }
verseb = \lyricmode { both \repeat unfold 8 { one two } }

\score {
    \new Staff <<
      \new Voice = "one" { \voiceOne \musicOne }
      \new Voice = "two" { \voiceTwo \musicTwo }
    >>
    \addlyrics { \set stanza = "1." \verseb }
    \addlyrics { \set stanza = "2." \verse }
}

\score {
  <<
    \new Staff <<
      \new Voice = "one" { \voiceOne \musicOne }
      \new Voice = "two" { \voiceTwo \musicTwo }
    >>
    \addlyrics { \set stanza = "3." \verse }
    \new Lyrics \lyricsto "one" { \lyricmode { \set stanza = "4." } \verse }
    \new Lyrics \lyricsto "two" { \lyricmode { \set stanza = "5." } \verse }
  >>
}
===== end =====


-- 
Michael Gerdau email: address@hidden
GPG-keys available on request or at public keyserver



reply via email to

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