]> git.donarmstrong.com Git - lilypond.git/blob - ly/declarations-init.ly
(add-cmr-fonts): caps is eccc, ecsc is slanted caps.
[lilypond.git] / ly / declarations-init.ly
1 #(ly:set-option 'old-relative)
2
3 \version "2.1.36"
4 breve = #(ly:make-duration -1 0)
5 longa = #(ly:make-duration -2 0 )
6 maxima = #(ly:make-duration -3 0)
7
8 \include "nederlands.ly"                % dutch
9 \include "drumpitch-init.ly"            
10 \include "chord-modifiers-init.ly"
11 \include "script-init.ly"
12
13 % declarations for standard directions
14 left = -1
15 right = 1
16 up = 1
17 down = -1
18 start = -1
19 stop = 1
20 smaller = -1
21 bigger = 1
22 center=0
23
24 %{
25
26 should also set allowBeamBreak, but how to do it "portably"? (ie. also
27 working with lyric sections)
28
29 %}
30 break =#(make-event-chord (list (make-penalty-music -10001)))
31 noBreak = #(make-event-chord (list (make-penalty-music 10001)))
32
33 noBeam = #(make-music 'BeamForbidEvent) 
34 pipeSymbol = #(make-music 'BarCheck)
35
36 \include "scale-definitions-init.ly"
37
38 melisma = #(make-span-event 'ManualMelismaEvent START)
39 melismaEnd = #(make-span-event 'ManualMelismaEvent STOP)
40
41 \include "grace-init.ly"
42
43 % ugh
44 \include "midi-init.ly"
45
46
47 % Do units first; must be done before any units are specified.
48 \paper {
49     unit = #(ly:unit)
50     mm = 1.0
51     in = 25.4
52     pt = #(/  in 72.27)
53     cm = #(* 10 mm)
54
55     inputencoding = #"TeX"
56     raggedright = ##f
57     raggedlast = ##f 
58     packed = ##f
59     
60     #(define $is-paper #t)
61     
62     #(define font-defaults
63       '((font-encoding . fetaMusic))
64       )
65
66     #(define text-font-defaults
67       '((font-encoding . TeX-tex)
68         (baseline-skip . 2)
69         (word-space . 0.6)
70         ))
71
72     #(define page-breaking ly:ragged-page-breaks)
73     %#(define page-breaking ly:optimal-page-breaks)
74     
75     \include "engraver-init.ly"
76 }
77
78 #(set-default-paper-size "a4")
79
80
81 %{
82
83 ; note:
84 ; you can add fonts manually  in the paper block by issuing
85
86 #(set! fonts (append ...myfonts... fonts))
87
88 for the format of myfonts, see font.scm
89
90 %}
91
92 paperEleven = \paper {
93     #(paper-set-staff-size (* 11.0 pt))
94 }
95
96 paperThirteen = \paper {
97     #(paper-set-staff-size (* 13.0 pt))
98 }
99
100 paperSixteen = \paper {
101     #(paper-set-staff-size (* 16.0 pt))
102 }
103
104 paperEightteen = \paper {
105     #(paper-set-staff-size (* 18.0 pt))
106 }
107
108 paperTwenty = \paper {
109     #(paper-set-staff-size (* 20.0 pt))
110 }
111
112 paperTwentythree = \paper {
113     #(paper-set-staff-size (* 23.0 pt))
114 }
115
116 paperTwentysix = \paper {
117     #(paper-set-staff-size (* 26.0 pt))
118 }
119
120 \paper { \paperTwenty }
121
122 partCombineListener = \paper {
123  \context {
124           \VoiceContext
125           \consists Note_heads_engraver
126           \consists Rest_engraver
127           \type "Recording_group_engraver"
128           recordEventSequence = #notice-the-events-for-pc
129  }
130  \context { \ScoreContext skipTypesetting = ##t }
131 }
132
133 #(set-part-combine-listener partCombineListener)
134
135 \include "dynamic-scripts-init.ly"
136 \include "spanners-init.ly"
137
138 \include "property-init.ly"
139
140
141
142 % reset default duration
143 unusedEntry = \notes { c4 }
144
145
146 % must have size argument for GUILE 1.6 compat.
147 #(define musicQuotes (make-hash-table 29))