2014-02-23 18:00 GMT+01:00 Paul Morris <p...@paulwmorris.com>:

> I have a question about preventing automatic page breaks and only using
> manual page breaks. I'm working on a large file (72 pages) that has 1-3
> separate fiddle tunes per page.  Each tune is in a separate file that I
> include in the main file like this:
>
> % page 1
> \include "TuneA.ly"
> \include "TuneB.ly"
> \pageBreak
>
> % page 2
> \include "TuneC.ly"
> \include "TuneD.ly"
> \include "TuneE.ly"
> \pageBreak
>
> Each tune file has its own \score block that contains the music (stored in
> variables) and the header info for each tune.
>
> I only want page breaks where I manually put them in the main file, but
> LilyPond occasionally puts them in the middle of a tune when the vertical
> spacing gets tight on a given page.
>
> I tried putting each page in a \bookpart[1] or \book block, but this
> doesn't work because of the variables in each tune file which apparently
> can't appear inside of these blocks.  For example, this won't work:
>
> \bookpart {
>   melodyA = { a b c d }
>   \score { \new Staff \melodyA }
>   \score { \new Staff { e f g } }
> }
>

IMO \bookpart is the best choice for your use  case.
What prevents you from moving melodyA out of the \bookpart block?
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to