Re: vertically center rests in polyphonic voices

2023-08-10 Thread David Wright
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.



Re: vertically center rests in polyphonic voices

2023-08-10 Thread William Rehwinkel via LilyPond user discussion

Dear Jin,

You can write 4\rest instead of r4 to specify what "pitch" 
(vertical position) the rest should appear at. You should write the note 
that is the middle line of the staff for it to appear like a \oneVoice 
rest. So


\version "2.25.6"

upper = \relative c'' {
  \new Voice {
    \voiceOne c4 b4\rest c4 b4\rest
  }
  \new Voice {
    \voiceTwo c4 b4\rest c4 b4\rest
  }
}
\new Staff = "upper" \upper


Thanks,
-William

On 8/10/23 20:27, Jin Choi wrote:

\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


--
+ --- +
|   William Rehwinkel - Oberlin College and   |
|  Conservatory '24   |
|will...@williamrehwinkel.net  |
| PGP key:|
|https://ftp.williamrehwinkel.net/pubkey.txt  |
+ --- +



OpenPGP_signature
Description: OpenPGP digital signature


vertically center rests in polyphonic voices

2023-08-10 Thread Jin Choi
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?


Re: Removing barlines temporarily

2023-08-10 Thread William Rehwinkel via LilyPond user discussion

Dear Jin,

Depending on what type of music it is, you can also do this:

-William

\version "2.25.7"

\relative c' {
  c4 d e f g a b c | c \set Timing.measureBarType = "" b a g f e d c | 
c \set Timing.measureBarType = "|" d e f g a b c

}


On 8/10/23 11:36, Jin Choi wrote:

I have a section of a score where all the barlines are absent. How do I 
temporarily turn off automatic bar lines?


--
+ --- +
|   William Rehwinkel - Oberlin College and   |
|  Conservatory '24   |
|will...@williamrehwinkel.net  |
| PGP key:|
|https://ftp.williamrehwinkel.net/pubkey.txt  |
+ --- +



OpenPGP_signature
Description: OpenPGP digital signature


Re: Removing barlines temporarily

2023-08-10 Thread Jin Choi
Never mind, I read further down in the docs: \allowBreak.


> On Aug 10, 2023, at 1:21 PM, Jin Choi  wrote:
> 
> Thank you, that’s exactly what I was looking for. However, the candenza 
> section just runs right off the right side of the page now. How do I get it 
> to break?
> 
> 
>> On Aug 10, 2023, at 11:47 AM, Jean Abou Samra  wrote:
>> 
>> Le jeudi 10 août 2023 à 11:36 -0400, Jin Choi a écrit :
>>> I have a section of a score where all the barlines are absent. How do I 
>>> temporarily turn off automatic bar lines?
>> 
>> 
>> Search for \cadenzaOn.
> 



Re: Removing barlines temporarily

2023-08-10 Thread Jin Choi
Thank you, that’s exactly what I was looking for. However, the candenza section 
just runs right off the right side of the page now. How do I get it to break?


> On Aug 10, 2023, at 11:47 AM, Jean Abou Samra  wrote:
> 
> Le jeudi 10 août 2023 à 11:36 -0400, Jin Choi a écrit :
>> I have a section of a score where all the barlines are absent. How do I 
>> temporarily turn off automatic bar lines?
> 
> 
> Search for \cadenzaOn.



auto-first-page-number add extra blank page

2023-08-10 Thread Pierre-Luc Gauthier
Hi there,

When setting auto-first-page-number = ##t , it sometimes changes the
first page number (The one with the header and all) as expected as
page 1 or 2.

Is there a way to add an extra blank page automatically as page 1 only
when the auto-first-page-number sets the first (title) page to be 2 ?

The classic "Left intentionally blank" page, created especially for
those of us getting ptsd panic attacks at the thought of eventually
negotiating yet again with this horrible printer interface for it to
"do it correctly".

Thanks,
-- 
Pierre-Luc Gauthier



Re: Removing barlines temporarily

2023-08-10 Thread Jean Abou Samra
Le jeudi 10 août 2023 à 11:36 -0400, Jin Choi a écrit :
> I have a section of a score where all the barlines are absent. How do I
> temporarily turn off automatic bar lines?


Search for \cadenzaOn.


signature.asc
Description: This is a digitally signed message part


Removing barlines temporarily

2023-08-10 Thread Jin Choi
I have a section of a score where all the barlines are absent. How do I 
temporarily turn off automatic bar lines?