Merge branch 'fret-diagram-details'
[lilypond/csorensen.git] / ly / declarations-init.ly
blobb8c36e4f338dff45d3c9e204d9b72003188d3e60
1 \version "2.10.0"
3 %% < 1.8 compatibility switch
4 #(ly:set-option 'old-relative)
6 %% named durations
7 breve = #(ly:make-duration -1 0)
8 longa = #(ly:make-duration -2 0)
9 maxima = #(ly:make-duration -3 0)
11 \include "markup-init.ly"
12 \include "music-functions-init.ly"
13 \include "toc-init.ly"
15 %% default note names are dutch
16 \include "nederlands.ly"
18 \include "drumpitch-init.ly"
19 \include "chord-modifiers-init.ly"
20 \include "script-init.ly"
22 % declarations for standard directions
23 left = #-1
24 right = #1
25 up = #1
26 down = #-1
27 start = #-1
28 stop = #1
29 smaller = #-1
30 bigger = #1
31 center = #0
33 %% FIXME
34 %% should also set allowBeamBreak, but how to do it "portably"? (ie. also
35 %% working with lyric sections)
37 %% try \once \set Score.allowBeamBreak = ##t
39 %% rather name \newline, \pageBreak ?
40 break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force)))
41 noBreak = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission '())))
42 %% \pageBreak, \noPageBreak, \pageTurn, \noPageTurn, \allowPageTurn are defined
43 %% as music functions
45 stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP)))
46 startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START)))
50 % Code articulation definitions
52 noBeam = #(make-music 'BeamForbidEvent)
53 pipeSymbol = #(make-music 'BarCheck)
54 bracketOpenSymbol = #(make-span-event 'BeamEvent START)
55 bracketCloseSymbol = #(make-span-event 'BeamEvent STOP)
56 tildeSymbol = #(make-music 'TieEvent)
57 parenthesisOpenSymbol = #(make-span-event 'SlurEvent START)
58 parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP)
59 escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP)
60 escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START)
61 escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP)
62 escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START)
63 escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START)
67 \include "scale-definitions-init.ly"
69 melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom)
70 melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom)
72 laissezVibrer = #(make-music 'LaissezVibrerEvent)
73 repeatTie = #(make-music 'RepeatTieEvent)
75 \include "grace-init.ly"
76 \include "midi-init.ly"
77 \include "paper-defaults.ly"
79 \layout {
80 mm = #(ly:output-def-lookup $defaultpaper 'mm)
81 unit = #(ly:output-def-lookup $defaultpaper 'unit)
83 in = #(* 25.4 mm)
84 pt = #(/ in 72.27)
85 cm = #(* 10 mm)
87 \include "engraver-init.ly"
89 #(set-paper-dimension-variables (current-module))
92 #(set-default-paper-size (ly:get-option 'paper-size))
94 partCombineListener = \layout {
95 \context {
96 \Score
97 skipTypesetting = ##t
98 ignoreBarChecks = ##t
99 \alias "Timing"
103 \include "dynamic-scripts-init.ly"
104 \include "spanners-init.ly"
105 \include "property-init.ly"
107 setDefaultDurationToQuarter = { c4 }
109 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
110 #(define musicQuotes (make-hash-table 29))
112 #(define toplevel-book-handler print-book-with-defaults)
113 #(define toplevel-music-handler collect-music-for-book)
114 #(define toplevel-score-handler collect-scores-for-book)
115 #(define toplevel-text-handler collect-scores-for-book)
117 #(define book-music-handler collect-book-music-for-book)
118 #(define book-score-handler ly:book-add-score!)
119 #(define book-text-handler ly:book-add-score!)