On Mon, Sep 23, 2024 at 2:06 AM David Sumbler <[email protected]> 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