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