]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/init.ly
* scm/lily.scm (collect-scores-for-book): new function.
[lilypond.git] / ly / init.ly
index cf9571d58bf48a1227c20c490aca4a4492d2f69d..4bfdb7fb0ee13af21eea382211c08247d958140a 100644 (file)
 
 #(ly:set-option 'new-relative)
 #(ly:set-point-and-click #f)
+#(define  toplevel-scores '())
 
 \maininput
 % there is a problem at the end of the input file
 
-
 %%
 %% above and below message is to compensate for look ahead of the parser.
 %%
@@ -29,6 +29,8 @@
        )))% there is a problem at the end of the input file
 
 
+#(if (pair? toplevel-scores)
+  (ly:parser-print-book parser (apply ly:make-book $defaultbookpaper $globalheader toplevel-scores)))
 
 #(if (ly:get-option 'verbose)
   (begin