1 %% Toplevel initialisation file.
3 #(define-public midi-debug #f)
8 \include "declarations-init.ly"
11 #(ly:set-option 'new-relative)
12 #(ly:set-point-and-click #f)
13 #(define toplevel-scores '())
14 #(define $globalheader #f)
15 #(define version-seen? #f)
18 %% there is a problem at the end of the input file
21 %% Above and below comments compensate for the parser's look-ahead.
24 #(if (and (ly:get-option 'old-relative)
25 (defined? 'input-file-name)
26 (not (ly:get-option 'old-relative-used)))
27 (ly:warn (string-append
29 input-file-name ": old relative compatibility was not used."
30 )))%% there is a problem at the end of the input file
32 #(if (not version-seen?)
33 (ly:warn "No \\version included in input file.\nAdd\n\n\t\\version \"~a\"\n\nfor future compatibility" (lilypond-version)))
37 #(if (pair? toplevel-scores)
38 (ly:parser-print-book parser
39 (apply ly:make-book $defaultpaper $globalheader (reverse toplevel-scores))))