3 %% < 1.8 compatibility switch
4 #(ly:set-option 'old-relative)
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"
14 %% default note names are dutch
15 \include "nederlands.ly"
17 \include "drumpitch-init.ly"
18 \include "chord-modifiers-init.ly"
19 \include "script-init.ly"
21 % declarations for standard directions
33 %% should also set allowBeamBreak, but how to do it "portably"? (ie. also
34 %% working with lyric sections)
36 %% try \once \set Score.allowBeamBreak = ##t
38 %% rather name \newline, \pageBreak ?
39 break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force)))
40 noBreak = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission '())))
41 %% \pageBreak, \noPageBreak, \pageTurn, \noPageTurn, \allowPageTurn are defined
44 stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP)))
45 startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START)))
49 % Code articulation definitions
51 noBeam = #(make-music 'BeamForbidEvent)
52 pipeSymbol = #(make-music 'BarCheck)
53 bracketOpenSymbol = #(make-span-event 'BeamEvent START)
54 bracketCloseSymbol = #(make-span-event 'BeamEvent STOP)
55 tildeSymbol = #(make-music 'TieEvent)
56 parenthesisOpenSymbol = #(make-span-event 'SlurEvent START)
57 parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP)
58 escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP)
59 escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START)
60 escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP)
61 escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START)
62 escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START)
66 \include "scale-definitions-init.ly"
68 melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom)
69 melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom)
71 laissezVibrer = #(make-music 'LaissezVibrerEvent)
72 repeatTie = #(make-music 'RepeatTieEvent)
74 \include "grace-init.ly"
75 \include "midi-init.ly"
76 \include "paper-defaults.ly"
79 mm = #(ly:output-def-lookup $defaultpaper 'mm)
80 unit = #(ly:output-def-lookup $defaultpaper 'unit)
86 \include "engraver-init.ly"
88 #(set-paper-dimension-variables (current-module))
91 #(set-default-paper-size (ly:get-option 'paper-size))
93 partCombineListener = \layout {
102 \include "dynamic-scripts-init.ly"
103 \include "spanners-init.ly"
104 \include "property-init.ly"
106 setDefaultDurationToQuarter = { c4 }
108 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
109 #(define musicQuotes (make-hash-table 29))
111 #(define toplevel-book-handler print-book-with-defaults)
112 #(define toplevel-music-handler collect-music-for-book)
113 #(define toplevel-score-handler collect-scores-for-book)
114 #(define toplevel-text-handler collect-scores-for-book)