]> git.donarmstrong.com Git - lilypond.git/blob - ly/declarations-init.ly
(construct-chord): process transposition
[lilypond.git] / ly / declarations-init.ly
1 #(ly:set-option 'old-relative)
2
3 \version "2.1.26"
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-by-name 'BeamForbidEvent) 
34
35 \include "scale-definitions-init.ly"
36
37 melisma = #(make-span-event 'ManualMelismaEvent START)
38 melismaEnd = #(make-span-event 'ManualMelismaEvent STOP)
39
40 \include "grace-init.ly"
41
42 % ugh
43 \include "midi-init.ly"
44
45
46 % Do units first; must be done before any units are specified.
47 \paper {
48     unit = "mm"  %% ugh: coupled to LilyPond C++ code.
49     mm = 1.0
50     in = 25.4
51     pt = #(/  in 72.27)
52     cm = #(* 10 mm)
53
54     #(define font-defaults
55       '((font-family . music)
56         (font-shape . upright)
57         (baseline-skip . 2)
58         (word-space . 0.6)
59         (font-series . medium)
60     ))
61     
62     \include "engraver-init.ly"
63 }
64
65 #(set-paper-size "a4")
66
67
68 %{
69
70 ; note:
71 ; you can add fonts manually  in the paper block by issuing
72
73 #(set! fonts (append ...myfonts... fonts))
74
75 for the format of myfonts, see font.scm
76
77 %}
78
79
80 paperEleven = \paper {
81     #(paper-set-staff-size (* 11.0 pt))
82 }
83
84 paperThirteen = \paper {
85     #(paper-set-staff-size (* 13.0 pt))
86 }
87
88 paperSixteen = \paper {
89     #(paper-set-staff-size (* 16.0 pt))
90 }
91
92 paperEightteen = \paper {
93     #(paper-set-staff-size (* 18.0 pt))
94 }
95
96 paperTwenty = \paper {
97     #(paper-set-staff-size (* 20.0 pt))
98 }
99
100 paperTwentythree = \paper {
101     #(paper-set-staff-size (* 23.0 pt))
102 }
103
104 paperTwentysix = \paper {
105     #(paper-set-staff-size (* 26.0 pt))
106 }
107
108 \paper { \paperTwenty }
109
110 partCombineListener = \paper {
111  \translator {
112           \VoiceContext
113           \consists Note_heads_engraver
114           \consists Rest_engraver
115           \type "Recording_group_engraver"
116           recordEventSequence = #notice-the-events-for-pc
117  }
118  \translator { \ScoreContext skipTypesetting = ##t }
119 }
120
121 #(set-part-combine-listener partCombineListener)
122
123 \include "dynamic-scripts-init.ly"
124 \include "spanners-init.ly"
125
126 \include "property-init.ly"
127
128
129
130 % reset default duration
131 unusedEntry = \notes { c4 }
132
133
134 % must have size argument for GUILE 1.6 compat.
135 #(define musicQuotes (make-hash-table 29))