I'm having problems with page-turn breaking in one of my instrumental scores.
As the score is 3 pages (with optimal breaking) and has a long rest about 2/3
into the piece (with enough wiggle room to move the page break to the rest), I
wanted to add a nice title page (and a \pageBreak before the whole score) and
let lilypond do page-turn breaking.
Unfortunately, LilyPond gives a warning:
Calculating page and line breaks (1 possible page breaks)...
warning: cannot fit the first page turn onto a single page. Consider setting
first-page-number to an even number.
And LilyPond refuses to break the score at the R1*12.
Attached is an example. The page turn between page 3 and 4 should ideally be
placed at the R1*12, but lilypond refuses to do so, instead breaking at the
R1*5 and leaving one page empty (so 5 pages are used!).
Is this a bug in the page-turn algorithm?
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, [email protected], http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
\version "2.13.29"
\header {
title = "Dummy score"
instrument = "Violin 1"
copyright = "No © 2010 by anyone"
}
\paper {
ragged-last-bottom = ##f
% Allow line-breaks only at long rests!
#(define page-breaking ly:page-turn-breaking)
}
\paper {
bookTitleMarkup = \markup {
Dummy title page
}
}
\layout {
\context { \Staff
\consists "Page_turn_engraver"
}
}
% page break here, because the bookTitleMarkup will be a whole page:
\pageBreak
% The score: LilyPond refuses to add a page turn at the R1*12 and instead
% gives a warning and crams together all notes!!!
\relative c'' {
\compressFullBarRests
\repeat unfold 30 { c4 c, c'' c, }\bar"||"
R1*5 |
\repeat unfold 120 { c4 c, c'' c, }\bar"||"
R1*12 \bar"||"
\repeat unfold 100 { c4 c, c'' c, } \bar"|."
}
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond