]> 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 4608c01120ab40f777d3879e0d8fcbb78ede81d7..4bfdb7fb0ee13af21eea382211c08247d958140a 100644 (file)
@@ -1,21 +1,40 @@
 % Toplevel initialisation file. 
 
 #(define-public point-and-click #f)
-#(define-public midi-debug #f)
+#(define-public midi-debug  #f)
 
-#(reset-drum-kit)
 
-\version "1.9.1"
+\version "2.2.0"
 
 \include "declarations-init.ly"
 
+
 #(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.
+%%
 
 #(if (and (ly:get-option 'old-relative)
+      (defined? 'input-file-name)
       (not (ly:get-option 'old-relative-used)))
   (ly:warn (string-append
            "\n"
-           input-file-name ": old relative compatibility was not used.")))
+           input-file-name ": old relative compatibility was not used."
+       )))% 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
+   (gc)
+   (write (gc-stats) (current-error-port))
+   ))
+