lilypond-user
[Top][All Lists]
Advanced

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

Re: 2 Voices | 1 Staff | Mensuration Lines | Lyrics


From: Johannes Roeßler
Subject: Re: 2 Voices | 1 Staff | Mensuration Lines | Lyrics
Date: Sat, 11 Feb 2023 22:00:01 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2

thx Jean and Valentin - very helpful!
Always amazing how fast this user group is!

Le samedi 11 février 2023 à 21:39 +0100, Johannes Roeßler a écrit :

    \new Staff {  
      \voices 1,2<< \global \sopI \sopII >>  
    }  
    \lyricsto "2" { \words }  

Make that

  \new Staff {
    << \global \voices 1,2 << \sopI \\ \sopII >> >>
  }
  \lyricsto "2" { \new Lyrics \words }

The << >> construct puts several expressions in parallel. In your case, you want three things in parallel, the \global variable, and the two voices, but if you want to use \voices to define the voices, each of the voices inside \voices << >> will have a voice style for its stem directions etc. \global isn't really a voice, so you should put it outside. Also note that there should be \\ inside \voices.

Alternatively, you could create the voices with the more explicit syntax

  \new Staff {
    <<
      \new Voice \global
      \new Voice = "1" { \voiceOne \sopI }
      \new Voice = "2" { \voiceTwo \sopII }
    >>
  }
  \lyricsto "2" { \new Lyrics \words }

in which case you can do with only one << >>.

Also note that there should be \new Lyrics inside \lyricsto.



reply via email to

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