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 \TEXT
} }
% nur Output wenn noStandaloneOutput auf false steht #(if (not noStandaloneOutput)
output = #(if (not noStandaloneOutput) (begin
#{ (let ((header (ly:book-header HEADER)) (paper (ly:book-paper HEADER)))
\bookpart { (if header (set! $defaultheader header))
\HEADER (if paper (set! $defaultpaper paper))
)
(add-score #{
\score { \score {
\MUSIC \MUSIC
\layout { \LAYOUT } \layout { \LAYOUT }
} }#})
(add-score TEXT)
\TEXT (add-score #{
\score { \score {
\unfoldRepeats { \MUSIC \INLINESCOREMUSIC } \unfoldRepeats { \MUSIC \INLINESCOREMUSIC }
\midi { \midi {
@ -40,15 +40,5 @@ output = #(if (not noStandaloneOutput)
tempoWholesPerMinute = #(ly:make-moment midiQuarterNoteSpeed 4) 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 }
}