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`.
signature.asc
Description: This is a digitally signed message part
