Le samedi 11 février 2023 à 22:14 +0100, Valentin Petzel a écrit :
> 2) Instead of using such a parallel global thing with \hide BarLine we can
> achieve the same effect by doing
>
> \version "2.24.0"
>
> \layout {
> \override Staff.BarLine.stencil =
> #(grob-transformer 'stencil
>
Also two remarks:
1) Instead of using skips in your global block you can have your global block
automatically adjusted to the music by doing
global = {
\hide Staff.BarLine
\skip \sopI
\undo \hide Staff.BarLine
\bar "|."
}
(after the definition of sopI in this case). \skip music will
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 <<
Hello Joei,
There are two small mistakes in your code:
\voices still requires you to to separate the Voices using \\, as you can see
by comparing this
\new Staff \voices 1,2,3 << { c' d' e'} a2. {c'4 b2} >>
to this:
\new Staff \voices 1,2,3 << { c' d' e'} \\ a2. \\ {c'4 b2} >>
And second \ly
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"