]> git.donarmstrong.com Git - lilypond.git/blob - ly/declarations-init.ly
* lily/slur.cc (print): only set font-size if not set yet.
[lilypond.git] / ly / declarations-init.ly
1 \version "2.7.39"
2
3 %% < 1.8 compatibility switch
4 #(ly:set-option 'old-relative)
5
6 %% named durations
7 breve = #(ly:make-duration -1 0)
8 longa = #(ly:make-duration -2 0)
9 maxima = #(ly:make-duration -3 0)
10
11 \include "music-functions-init.ly"
12
13 %% default note names are dutch
14 \include "nederlands.ly"
15
16 \include "drumpitch-init.ly"            
17 \include "chord-modifiers-init.ly"
18 \include "script-init.ly"
19
20 % declarations for standard directions
21 left = #-1
22 right = #1
23 up = #1
24 down = #-1
25 start = #-1
26 stop = #1
27 smaller = #-1
28 bigger = #1
29 center = #0
30
31 %% FIXME
32 %% should also set allowBeamBreak, but how to do it "portably"? (ie. also
33 %% working with lyric sections)
34 %%
35 %% try \once \set Score.allowBeamBreak = ##t
36
37 %% rather name \newline, \pageBreak ?
38 break = #(make-event-chord (list (make-penalty-music -10001 0)))
39 noBreak = #(make-event-chord (list (make-penalty-music 10001 0)))
40 pageBreak = #(make-event-chord (list (make-penalty-music -10001 -10001)))
41 noPageBreak = #(make-event-chord (list (make-penalty-music 0 10001)))
42 stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP)))
43 startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START)))
44
45
46 %
47 % Code articulation definitions
48 %
49 noBeam = #(make-music 'BeamForbidEvent) 
50 pipeSymbol = #(make-music 'BarCheck)
51 bracketOpenSymbol = #(make-span-event 'BeamEvent START)
52 bracketCloseSymbol = #(make-span-event 'BeamEvent STOP)
53 tildeSymbol = #(make-music 'TieEvent)
54 parenthesisOpenSymbol =  #(make-span-event 'SlurEvent START)
55 parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP)
56 escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP)
57 escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START)
58 escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP)
59 escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START)
60 escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START)
61
62
63
64 \include "scale-definitions-init.ly"
65
66 melisma = #(make-span-event 'ManualMelismaEvent START)
67 melismaEnd = #(make-span-event 'ManualMelismaEvent STOP)
68 laissezVibrer = #(make-music 'LaissezVibrerEvent)
69 repeatTie = #(make-music 'RepeatTieEvent)
70                   
71 \include "grace-init.ly"
72 \include "midi-init.ly"
73 \include "paper-defaults.ly"
74
75 \layout {
76     mm = #(ly:output-def-lookup $defaultpaper 'mm)
77     unit = #(ly:output-def-lookup $defaultpaper 'unit)
78
79     in = #(* 25.4 mm)
80     pt = #(/  in 72.27)
81     cm = #(* 10 mm)
82     
83     \include "engraver-init.ly"
84
85     #(set-paper-dimension-variables (current-module))
86 }
87
88 #(set-default-paper-size (ly:get-option 'paper-size))
89
90
91 partCombineListener = \layout {
92     \context {
93         \Voice
94         \consists Note_heads_engraver
95         \consists Rest_engraver
96         \type "Recording_group_engraver"
97         recordEventSequence = #notice-the-events-for-pc
98     }
99     \context {
100         \Score
101         skipTypesetting = ##t
102         ignoreBarChecks = ##t 
103     }
104 }
105
106 #(set-part-combine-listener partCombineListener)
107
108 \include "dynamic-scripts-init.ly"
109 \include "spanners-init.ly"
110 \include "property-init.ly"
111
112 setDefaultDurationToQuarter = { c4 }
113
114 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
115 #(define musicQuotes (make-hash-table 29))
116
117 #(define toplevel-book-handler print-book-with-defaults)
118 #(define toplevel-music-handler collect-music-for-book)
119 #(define toplevel-score-handler collect-scores-for-book)
120 #(define toplevel-text-handler collect-scores-for-book)
121