Compare commits
	
		
			2 Commits
		
	
	
		
			f0ffd3f630
			...
			47bb7991b8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 47bb7991b8 | |||
| d94703547c | 
							
								
								
									
										2
									
								
								break_paged_output.ily
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								break_paged_output.ily
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| \include "lilypond-book-preamble.ly" | ||||
| #(ly:set-option 'separate-page-formats "pdf") | ||||
| @@ -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"))) | ||||
|   | ||||
| @@ -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 } | ||||
| } | ||||
|     }#}) | ||||
| )) | ||||
		Reference in New Issue
	
	Block a user