1 %% Toplevel initialisation file.
3 %% switch on debugging.
4 #(if (and #t (defined? 'set-debug-cell-accesses!))
5 (set-debug-cell-accesses! 5000))
7 #(define-public midi-debug #f)
14 \include "declarations-init.ly"
17 #(ly:set-option 'old-relative #f)
18 #(define toplevel-scores '())
19 #(define output-count 0)
20 #(define $defaultheader #f)
21 #(define version-seen #f)
24 #(use-modules (scm clip-region))
26 %% there is a problem at the end of the input file
29 %% Above and below comments compensate for the parser's look-ahead.
32 #(if (and (ly:get-option 'old-relative)
33 (defined? 'input-file-name)
34 (not (ly:get-option 'old-relative-used)))
35 (old-relative-not-used-message input-file-name))%% there is a problem at the end of the input file
37 #(if (and (not version-seen)
38 (defined? 'input-file-name))
39 (version-not-seen-message input-file-name))
41 #(if (pair? toplevel-scores)
42 (toplevel-book-handler
44 (apply ly:make-book $defaultpaper $defaultheader toplevel-scores)))