Thank you Mats!
THis works the best since I use multiple voices throughout.
(i.e. My guitar template is set up like this:
\score {
\new Staff \with {
midiInstrument = "acoustic guitar (nylon)"
} { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour
\\ \SpacingVoice >> }
\layout { }
}
________________________________
From: Mats Bengtsson <[email protected]>
Sent: Tuesday, June 10, 2025 6:38 AM
To: Dirck Nagy <[email protected]>; Lilypond-User Mailing List
<[email protected]>
Subject: Re: default rest position, multiple voices vs. single voice
On 2025-06-10 08:10, Jean Bréfort wrote:
> Hi,
>
> You should use \oneVoice when voice two vanishes:
>
> \header{
> title = "example 2"
> }
>
> \relative c'
> {<<
> { c'( d) r f, d' r g,( a)
> \oneVoice c( d) r f, d' r g,( a) }
> \\
> { s1 c,4 d r4 f }
> >>
> }
>
or simply finish the << {...} \\ {...} >> construct when the multi voice
section ends:
\relative c'
{<<
{ c'( d) r f, d' r g,( a) }
\\
{ s1 c,4 d r4 f }
>>
c'( d) r f, d' r g,( a)
}
However, if you have music that switches back and forth between single
and double voices it might be more convenient to keep both voices alive
and use \oneVoice when going to single voice and \voiceOne (in the upper
line) when reverting to multiple voices:
\relative c'' <<
{
c4( d) r f, |
d' r g,( a) |
\oneVoice % start of single voice passage
c( d) r f, |
\voiceOne % resume multiple voices
d' r g,( a) |
}
\\
\relative c' {
s1 |
c4 d r f |
s1 |
c4 d r f |
}
>>
(I took the liberty to reformat your example a bit according to my habit
of writing a single measure per line and inserting bar checks at the end
of each measure, which helps a lot when looking for typos).
/Mats