]> git.donarmstrong.com Git - lilypond.git/blob - ly/declarations-init.ly
* lily/lookup.cc (round_filled_box): remove warnings about blot
[lilypond.git] / ly / declarations-init.ly
1 #(ly:set-option 'old-relative)
2
3 \version "2.3.8"
4 breve = #(ly:make-duration -1 0)
5 longa = #(ly:make-duration -2 0 )
6 maxima = #(ly:make-duration -3 0)
7
8 \include "music-functions-init.ly"
9 \include "nederlands.ly"                % dutch
10 \include "drumpitch-init.ly"            
11 \include "chord-modifiers-init.ly"
12 \include "script-init.ly"
13
14 % declarations for standard directions
15 left = -1
16 right = 1
17 up = 1
18 down = -1
19 start = -1
20 stop = 1
21 smaller = -1
22 bigger = 1
23 center=0
24
25 %{
26
27 should also set allowBeamBreak, but how to do it "portably"? (ie. also
28 working with lyric sections)
29
30 try \once \set Score.allowBeamBreak = ##t
31
32 %}
33
34 %% rather name \newline, \newpage ?
35 break = #(make-event-chord (list (make-penalty-music -10001 0)))
36 noBreak = #(make-event-chord (list (make-penalty-music 10001 0)))
37 pageBreak = #(make-event-chord (list (make-penalty-music -10001 -10001)))
38 pagebreak = \pageBreak % ugh.
39 noPageBreak = #(make-event-chord (list (make-penalty-music 0 10001)))
40 noPagebreak = \noPageBreak % ugh
41
42 noBeam = #(make-music 'BeamForbidEvent) 
43 pipeSymbol = #(make-music 'BarCheck)
44
45 foo =  { \pageBreak }
46
47 \include "scale-definitions-init.ly"
48
49
50 melisma = #(make-span-event 'ManualMelismaEvent START)
51 melismaEnd = #(make-span-event 'ManualMelismaEvent STOP)
52
53 \include "grace-init.ly"
54
55 % ugh
56 \include "midi-init.ly"
57
58 \include "book-paper-defaults.ly"
59
60 \paper {
61     mm = #(ly:output-def-lookup $defaultbookpaper  'mm)
62     unit = #(ly:output-def-lookup $defaultbookpaper  'unit)
63
64     in = #(* 25.4 mm)
65     pt = #(/  in 72.27)
66     cm = #(* 10 mm)
67     
68     \include "engraver-init.ly"
69 }
70
71
72 #(set-default-paper-size "a4")
73
74
75 partCombineListener = \paper {
76  \context {
77           \Voice
78           \consists Note_heads_engraver
79           \consists Rest_engraver
80           \type "Recording_group_engraver"
81           recordEventSequence = #notice-the-events-for-pc
82  }
83  \context { \Score skipTypesetting = ##t }
84 }
85
86 #(set-part-combine-listener partCombineListener)
87
88 \include "dynamic-scripts-init.ly"
89 \include "spanners-init.ly"
90
91 \include "property-init.ly"
92
93 %% reset default duration
94 unusedEntry =  { c4 }
95
96 %% must have size argument for GUILE 1.6 compat.
97 #(define musicQuotes (make-hash-table 29))
98
99 #(define toplevel-book-handler ly:parser-print-book)
100 #(define toplevel-music-handler collect-music-for-book)
101 #(define toplevel-score-handler collect-scores-for-book)