]> git.donarmstrong.com Git - lilypond.git/blob - ly/init.ly
Fix some bugs in the dynamic engraver and PostScript backend
[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.7.39"
11
12 \include "declarations-init.ly"
13
14
15 #(ly:set-option 'old-relative #f)
16 #(define toplevel-scores '())
17 #(define output-count 0) 
18 #(define $defaultheader #f)
19 #(define version-seen? #f)
20
21 \maininput
22 %% there is a problem at the end of the input file
23
24 %%
25 %% Above and below comments compensate for the parser's look-ahead.
26 %%
27
28 #(if (and (ly:get-option 'old-relative)
29       (defined? 'input-file-name)
30       (not (ly:get-option 'old-relative-used)))
31   (old-relative-not-used-message input-file-name))%% there is a problem at the end of the input file
32
33 #(if (and (not version-seen?)
34       (defined? 'input-file-name))
35   (version-not-seen-message input-file-name))
36
37 #(if (pair? toplevel-scores)
38   (toplevel-book-handler
39    parser
40    (apply ly:make-book $defaultpaper $defaultheader toplevel-scores)))