lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cadenza puzzle


From: Charlie Ma
Subject: Re: cadenza puzzle
Date: Fri, 26 Jan 2024 23:08:54 -0800

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.png
On Fri, Jan 26, 2024 at 12:36 PM bobroff@centrum.is <bobroff@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

[Prev in Thread] Current Thread [Next in Thread]