cadenza puzzle

2024-01-26 Thread bobr...@centrum.is
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 ***

"\override BarLine" for a PianoStaff

2024-01-26 Thread Ivan Kuznetsov
"\override BarLine" for a PianoStaff

I frequently use lilypond for short theory
examples for teaching, and for such examples
I often use the code:

   \override BarLine.transparent = ##t

to make bar lines disappear.  This has always worked
for me for a single staff, but when I just tried
to do this with a grand staff in the excerpt
below, the bar lines only disappeared "on the staves"
but still appeared "between the staves".
Running the excerpt below will illustrate this.

How do I make the entire bar lines transparent
for a grand staff?

Thank you for your help.


\version "2.24.1"
\language "english"

\paper{ indent = 0\cm }

\score {

  \new PianoStaff
  <<
  \new Staff \with { \remove "Time_signature_engraver" }
  {
\time 4/4
\clef "treble"
s1   s1 s1   s1   e'1b'1   fs''   cs'''   gs'''
  }

  \new Staff \with { \remove "Time_signature_engraver" }
  {
\time 4/4
\clef "bass"
c,1   g,1   d1   a1e'1   s1s1s1  s1
  }
  >>

  \layout {

\context {
   \Score
   \override BarLine.transparent = ##t
}
  }

} % score


Re: "\override BarLine" for a PianoStaff

2024-01-26 Thread Vaughan McAlley
On Sat, 27 Jan 2024 at 11:08, Ivan Kuznetsov 
wrote:

> "\override BarLine" for a PianoStaff
>
> I frequently use lilypond for short theory
> examples for teaching, and for such examples
> I often use the code:
>
>\override BarLine.transparent = ##t
>
> to make bar lines disappear.  This has always worked
> for me for a single staff, but when I just tried
> to do this with a grand staff in the excerpt
> below, the bar lines only disappeared "on the staves"
> but still appeared "between the staves".
> Running the excerpt below will illustrate this.
>
> How do I make the entire bar lines transparent
> for a grand staff?
>
> Thank you for your help.
>
>
> \version "2.24.1"
> \language "english"
>
> \paper{ indent = 0\cm }
>
> \score {
>
>   \new PianoStaff
>   <<
>   \new Staff \with { \remove "Time_signature_engraver" }
>   {
> \time 4/4
> \clef "treble"
> s1   s1 s1   s1   e'1b'1   fs''   cs'''   gs'''
>   }
>
>   \new Staff \with { \remove "Time_signature_engraver" }
>   {
> \time 4/4
> \clef "bass"
> c,1   g,1   d1   a1e'1   s1s1s1  s1
>   }
>   >>
>
>   \layout {
>
> \context {
>\Score
>\override BarLine.transparent = ##t
> }
>   }
>
> } % score
>
>
Hi Ivan,

\new PianoStaff \with {  \remove "Span_bar_engraver" }

should work!

Cheers,
Vaughan


Re: cadenza puzzle

2024-01-26 Thread Charlie Ma
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 
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 ***