]> git.donarmstrong.com Git - lilypond.git/blob - ly/init.ly
b5471de7c5758acedb0256010240e1d0de05e530
[lilypond.git] / ly / init.ly
1 %% Toplevel initialisation file. 
2
3 #(define-public point-and-click #f)
4 #(define-public midi-debug  #f)
5
6
7 \version "2.4.0"
8
9 \include "declarations-init.ly"
10
11
12 #(ly:set-option 'new-relative)
13 #(ly:set-point-and-click #f)
14 #(define toplevel-scores '())
15 #(define $globalheader #f)
16 #(define version-seen? #f)
17
18 \maininput
19 %% there is a problem at the end of the input file
20
21 %%
22 %% Above and below comments compensate for the parser's look-ahead.
23 %%
24
25 #(if (and (ly:get-option 'old-relative)
26       (defined? 'input-file-name)
27       (not (ly:get-option 'old-relative-used)))
28   (ly:warn (string-append
29             "\n"
30             input-file-name ": old relative compatibility was not used."
31         )))%% there is a problem at the end of the input file
32
33 #(if (not version-seen?)
34   (ly:warn "No \\version included in input file.\nAdd\n\n\t\\version \"~a\"\n\nfor future compatibility" (lilypond-version)))
35   
36
37
38 #(if (pair? toplevel-scores)
39   (ly:parser-print-book parser
40    (apply ly:make-book $defaultpaper $globalheader (reverse toplevel-scores))))
41