Re: Hold a note the length of a cadenza

2023-12-27 Thread Timothy Lanfear

On 26/12/2023 20:21, John Burt wrote:

Dear list,
While one part is singing a cadenza another part is holding a long 
note. I know how to make a rest or a skip the length of a cadenza bu 
not how to make a held note the length of the cadenza.

thanks
John Burt


Something like this should do it. The first argument of the the function 
note-of-length is a whole note (c''1) with the pitch you need, which is 
scaled to last the same time as the music (\cadenza) in the second argument,



\version "2.24.0"

note-of-length = #(define-music-function (note music) (ly:music? ly:music?)
  (ly:music-compress note (ly:music-length music)))

cadenza = { g'4 a'4 b'4 c''4 d''4 e''4 f''4 }

{
  \cadenzaOn
  <<
    { \cadenza g''4 }
    { \note-of-length c''1 \cadenza g'4 }
  >>
  \cadenzaOff
}

--
Timothy Lanfear, Bristol, UK.


RE: Hold a note the length of a cadenza

2023-12-26 Thread Mark Stephen Mrotek
John,

 

Look at
https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns#aligning-to-cadenzas

 

Mark

 

From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org 
 On Behalf Of John Burt
Sent: Tuesday, December 26, 2023 12:21 PM
To: lilypond-user 
Subject: Hold a note the length of a cadenza

 

Dear list,

While one part is singing a cadenza another part is holding a long note. I know 
how to make a rest or a skip the length of a cadenza bu not how to make a held 
note the length of the cadenza.

thanks

John Burt



Re: Hold a note the length of a cadenza

2023-12-26 Thread Paul Hodges
The way I'd do it is to force the length of the held note to match that of the 
sung cadenza by multiplication.  For instance if there is a semibreve c being 
held while the cadenza part adds up to 7 crotchets, I'd write it as c1*7/4.  
But you could just write it normally and pad it out with skips (s2. in this 
instance) I guess.


Paul



 From:   John Burt  
 To:   lilypond-user  
 Sent:   26/12/2023 20:21 
 Subject:   Hold a note the length of a cadenza 



Dear list,While one part is singing a cadenza another part is holding a long 
note. I know how to make a rest or a skip the length of a cadenza bu not how to 
make a held note the length of the cadenza.
thanks
John Burt