jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 11 forks source link

Add system-count option #236

Closed uliska closed 5 years ago

uliska commented 5 years ago

If given the \paper { system-count } option is set in the ly_code. This can be very useful when LilyPond would by itself break the music on too many systems (e.g. one full system plus one measure), where forcing the system-count can make it work.

Produces

\paper{
    system-count = 2
    two-sided = ##f

in the relevant portion of the generated ly file

jperon commented 5 years ago

I only added a slight optimization by avoiding (duplicate) function calls. Incidentally, I did the same for another local function.