On Fri, Dec 27, 2013 at 4:08 PM, Kieren MacMillan <kieren_macmil...@sympatico.ca> wrote: > I think the “perfect” break-engraver would admit coding like the following > (pseudocode; all numbers in measures): > > \lineBreakAt 27 > \lineBreaksAt (12 28 34 48) > \noLineBreaks (27-30) > \lineBreaksForbidAt 28 > \lineBreaksAllowAt 34 > etc., and identical for \pageBreaks- > > These breaking-codes would be put in the \layout block of a score — cf. the > way David N’s engraver currently works — so that there is no need to mix this > presentation-layer information into the content layer. > > The only additional [optional] argument I can think of is a Staff (or Voice?) > "context target”, e.g., > > \lineBreakAt 27 #”soprano" > > which would be necessary for polymetric music (where the measures might not > all end simultaneously). > > Thoughts?
I like the ideas (though I haven't been following the preceding conversation). Some minor changes would be needed if a break is needed mid-measure (something like \lineBreakAt 27 3/4). I think I'd still prefer keeping the breaks within the score section (instead of in the \layout). Something like: \score << \new Staff {...} \breakmode { \lineBreakAfter 27 \pageBreakForbidAfter 98 etc... } >> It could even be expanded into the regular music after parsing. I'm not sure how possible that would be, but it would isolate the changes needed. The above would be transformed into something like: \score << ... { % Assuming '\time 4/4' s1*27 \break s1*71 \noPageBreak etc... } >> -----Jay _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user