The 'global' section in the project I'm setting is a quartet and I use 'global' 
as a template of sorts for time signatures, etc.  That way I only have to enter 
that information once.  The solution given does solve the problem of the 
duplicate rests, but why are the full measure rests not collected into a 
multimeasure rest?



----- Original Message -----
> From: "Charlie Ma" <m...@charlie.ma>
> To: "bobroff" <bobr...@centrum.is>
> Cc: "Lillypond Users Mailing List" <lilypond-user@gnu.org>
> Sent: Saturday, January 27, 2024 7:08:54 AM
> Subject: Re: cadenza puzzle

> not sure what you wanted to achieve with "global."
> But is this what you are looking for?
> See
> https://lilypond.org/doc/v2.24/Documentation/notation/displaying-rhythms#unmetered-music
> 
> 
> \version "2.24.2"
> 
> \pointAndClickOff
> 
> global = \relative {
>  \time 4/4
>  s1*8
>  \bar "|."
> }
> 
> cadenzaMeasure = {
>  \cadenzaOff
>  \partial 1024 s1024
>  \cadenzaOn
> }
> cad = \relative c' {
>  \cadenzaOn
>  a8 b c f
>  e gis es b
>  g bes a es \cadenzaMeasure
>  \cadenzaOff
> }
> 
> tune = \relative c' {
>  c4 d e f
>  \cad \bar "|"
>  \break
>  R1*5
> }
> 
> \score {
>  \relative {
>    \context Staff {
>    \override MultiMeasureRest.expand-limit = #1
>    \compressMMRests
>    <<
>      \global
>      \tune
>    >>
>    }
>  }
> }
> 
> [image: image.png]
> On Fri, Jan 26, 2024 at 12:36 PM bobr...@centrum.is <bobr...@centrum.is>
> wrote:
> 
>> Hello,
>>
>> I don't understand what's going on here.  The output I get is in the
>> attached PNG file.  I hope this is minimal enough.  It essentially reflects
>> the structure of the file that is giving me trouble.  Why is the five
>> measure rest "duplicating" like that?  In the actual project I'm working
>> with, the cadenza passage goes across two systems and the multimeasure rest
>> is duplicated twice before the "real" one is supposed to be displayed.
>>
>> Thanks for any assistance,
>>
>> David
>>
>> *** BEGIN LILY-CODE ***
>>
>> \version "2.24.2"
>>
>> \pointAndClickOff
>>
>> global = \relative {
>>   \time 4/4
>>   s1*8
>>   \bar "|."
>> }
>>
>> cad = \relative c' {
>>   \cadenzaOn
>>   a8 b c f
>>   e gis es b
>>   g bes a es
>>   \cadenzaOff
>> }
>>
>> tune = \relative c' {
>>   c4 d e f
>>   \cad
>>   \break
>>   R1*5
>> }
>>
>> \score {
>>   \relative {
>>     \context Staff {
>>     \override MultiMeasureRest.expand-limit = #1
>>     \compressMMRests
>>     <<
>>       \global
>>       \tune
>>     >>
>>     }
>>   }
>> }
>>
> > *** END LILY-CODE ***

Reply via email to