On Thu 10 Aug 2023 at 20:27:39 (-0400), Jin Choi wrote:
> I’m transcribing some piano music where it is helpful to use \voiceOne and 
> \voiceTwo for some extended polyphonic sections. When I come across shared 
> rests, I’ve been putting in rests in one voice and invisible rests in the 
> other voice. But rests in voices are vertically offset from the center 
> depending on which voice is in use:
> 
> \version "2.24.1"
> 
> upper = \relative c'' {
>   \new Voice {
>     \voiceOne c4 r4 c4 r4
>   }
>   \new Voice {
>     \voiceTwo c4 r4 c4 r4
>   }
> }
> \new Staff = "upper" \upper
> 
> 
> I can fix that by exiting the voice context and going to \oneVoice for the 
> rests, but is there an easier way just to have the rest vertically centered?

Take a look at:

  https://lilypond.org/doc/v2.25/Documentation/notation/merging-rests

which is something I haven't yet tried out. I assume this supercedes
snippet 336 and corrected versions thereof.

Cheers,
David.

Reply via email to