[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vertically center rests in polyphonic voices
From: |
Jin Choi |
Subject: |
Re: vertically center rests in polyphonic voices |
Date: |
Fri, 11 Aug 2023 10:18:29 -0400 |
Thanks. This works if I match all the rests I want centered in both voices.
William Rehwinkel’s suggestion of using a pitched rest also works, but is
slightly more difficult to deal with in \relative mode as it may affect the
notes following.
> On Aug 10, 2023, at 10:15 PM, David Wright <lilylis@lionunicorn.co.uk> wrote:
>
> 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.
>