allow break paged output

* compatibilty to Liederbuchgenerator
* apply standalone output directly to top level not wrapped in a book
This commit is contained in:
tux 2024-11-26 18:02:09 +01:00
parent f0ffd3f630
commit d94703547c
2 changed files with 14 additions and 22 deletions

2
break_paged_output.ily Normal file
View File

@ -0,0 +1,2 @@
\include "lilypond-book-preamble.ly"
#(ly:set-option 'separate-page-formats "pdf")

View File

@ -18,19 +18,19 @@ TEXT = \markuplist {
\TEXT
}
% nur Output wenn noStandaloneOutput auf false steht
output = #(if (not noStandaloneOutput)
#{
\bookpart {
\HEADER
#(if (not noStandaloneOutput)
(begin
(let ((header (ly:book-header HEADER)) (paper (ly:book-paper HEADER)))
(if header (set! $defaultheader header))
(if paper (set! $defaultpaper paper))
)
(add-score #{
\score {
\MUSIC
\layout { \LAYOUT }
}
\TEXT
}#})
(add-score TEXT)
(add-score #{
\score {
\unfoldRepeats { \MUSIC \INLINESCOREMUSIC }
\midi {
@ -40,15 +40,5 @@ output = #(if (not noStandaloneOutput)
tempoWholesPerMinute = #(ly:make-moment midiQuarterNoteSpeed 4)
}
}
}
}
#}
)
% if we don't want a standalone output, cause we compile a book, we just have an empty output here,
% so lilypond does not generate output for this song
\book {
\bookpart { \output }
}
}#})
))