Fwd: ragged-bottom and spacing for individual pages

2024-03-21 Thread Paul Scott

Forgot to copy this to the list.

Paul



 Forwarded Message 
Subject:Re: ragged-bottom and spacing for individual pages
Date:   Wed, 20 Mar 2024 23:38:37 -0700
From:   Paul Scott 
To: kie...@kierenmacmillan.info



On 3/20/24 6:08 PM, kie...@kierenmacmillan.info wrote:

Hi Paul,

I have a separate voice where I put all my breaks and pageBreaks.  I 
haven't been able to make a blank markup.  TIA on how to do that.


e.g.:

\version "2.25.1"

\paper {
    indent = 0
    ragged-bottom = ##f
}

{
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
    c'1 \break c'1-\tweak padding 132 _\markup  " " \pageBreak
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
}

Hope that helps!


It did!  It took me a while to factor it into what I needed which is :

\version "2.25.13"

\paper {
    indent = 0
    ragged-bottom = ##f
}

notes = { \repeat unfold 5 c'1 }

breaks = {
  s1 s1 \break s1-\tweak padding 128 _\markup  " " \pageBreak
  \repeat unfold 2 { s1 \pageBreak }
}

\score{ \new Staff << \notes \breaks >> }

Thank you,

Paul




Re: ragged-bottom and spacing for individual pages

2024-03-21 Thread Mats Bengtsson



On 2024-03-21 02:08, kie...@kierenmacmillan.info wrote:

Hi Paul,

I have a separate voice where I put all my breaks and pageBreaks.  I 
haven't been able to make a blank markup.  TIA on how to do that.


e.g.:

\version "2.25.1"

\paper {
    indent = 0
    ragged-bottom = ##f
}

{
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
    c'1 \break c'1-\tweak padding 132 _\markup  " " \pageBreak
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
} 



I thought I had a clever proposal in replacing the somewhat clumsy
-\tweak padding 132 _\markup  " "
by
\markup \vspace #40
but in the example above it doesn't give the expected effect. I have 
used \vspace successfully in some other situations, but here when it's 
used within a TextScript, I guess that LilyPond considers it as a too 
empty an object to be taken into account.


    /Mats




Re: ragged-bottom and spacing for individual pages

2024-03-21 Thread Paul Scott

On 3/21/24 9:46 AM, Mats Bengtsson wrote:


On 2024-03-21 02:08, kie...@kierenmacmillan.info wrote:

Hi Paul,

I have a separate voice where I put all my breaks and pageBreaks.  I 
haven't been able to make a blank markup.  TIA on how to do that.


e.g.:

\version "2.25.1"

\paper {
    indent = 0
    ragged-bottom = ##f
}

{
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
    c'1 \break c'1-\tweak padding 132 _\markup  " " \pageBreak
    \repeat unfold 2 { c'1 \break c'1 \pageBreak }
} 



I thought I had a clever proposal in replacing the somewhat clumsy
-\tweak padding 132 _\markup  " "
by
\markup \vspace #40
but in the example above it doesn't give the expected effect. I have 
used \vspace successfully in some other situations, but here when it's 
used within a TextScript, I guess that LilyPond considers it as a too 
empty an object to be taken into account.


I had tried \vspace.  I will try to define a text function which takes 
just the number when I have some time with my current project.


Paul




    /Mats