Compare commits

..

2 Commits

Author SHA1 Message Date
tux
47bb7991b8 use yml files as default 2024-11-26 18:04:13 +01:00
tux
d94703547c allow break paged output
* compatibilty to Liederbuchgenerator
* apply standalone output directly to top level not wrapped in a book
2024-11-26 18:02:09 +01:00
3 changed files with 16 additions and 24 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

@ -4,5 +4,5 @@
\include #(if noDefaultOutput "void.ly" "all_base_includes.ly")
#(define AUTHOR_DATA (if (defined? 'AUTHOR_DATA) AUTHOR_DATA (call-with-input-file "../data/authors.json" json->scm)))
#(define SONG_DATA (if (defined? 'SONG_DATA) SONG_DATA (call-with-input-file "../data/songs.json" json->scm)))
#(define AUTHOR_DATA (if (defined? 'AUTHOR_DATA) AUTHOR_DATA (parse-yml-file "../data/authors.yml")))
#(define SONG_DATA (if (defined? 'SONG_DATA) SONG_DATA (parse-yml-file "../data/songs.yml")))

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 }
}
}#})
))