lilypond-user
[Top][All Lists]
Advanced

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

Re: Manual page-breaking


From: Knute Snortum
Subject: Re: Manual page-breaking
Date: Mon, 23 Sep 2024 07:43:01 -0700


On Mon, Sep 23, 2024 at 2:06 AM David Sumbler <david@aeolia.co.uk> wrote:
Is there a way that I can take *total* control of page breaking?


Here's what I do when I want to take total control of line and page breaking (this is for 3/4 time):

%%%
forceBreaks = {
  % page 1
  \repeat unfold 3 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  % ( You need the grace { s8 } if the line starts with a grace note)
  \grace { s8 } \repeat unfold 4 { s2.\noBreak } s2.\pageBreak
 
  % page 2
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 3 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\break\noPageBreak
  \repeat unfold 4 { s2.\noBreak } s2.\pageBreak
 
  % etc...
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" \rightHand
    \new Dynamics \dynamics
    \new Staff = "lower" \leftHand
    \new Dynamics \pedal
    \new Dynamics \tempi
    \new Devnull \forceBreaks % <-- this is the important part
  >>
  \layout {}
}
%%%


--
Knute Snortum



reply via email to

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