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 "music-functions-init.ly"
13 %% default note names are dutch
14 \include "nederlands.ly"
16 \include "drumpitch-init.ly"
17 \include "chord-modifiers-init.ly"
18 \include "script-init.ly"
20 % declarations for standard directions
32 %% should also set allowBeamBreak, but how to do it "portably"? (ie. also
33 %% working with lyric sections)
35 %% try \once \set Score.allowBeamBreak = ##t
37 %% rather name \newline, \pageBreak ?
38 break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force)))
39 noBreak = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission '())))
40 pageBreak = #(make-event-chord (list
41 (make-music 'LineBreakEvent 'break-permission 'force)
42 (make-music 'PageBreakEvent 'break-permission 'force)))
43 noPageBreak = #(make-event-chord (list (make-music 'PageBreakEvent 'break-permission '())))
44 pageTurn = #(make-event-chord (list
45 (make-music 'LineBreakEvent 'break-permission 'force)
46 (make-music 'PageBreakEvent 'break-permission 'force)
47 (make-music 'PageTurnEvent 'break-permission 'force)))
48 noPageTurn = #(make-event-chord (list (make-music 'PageTurnEvent 'break-permission '())))
49 allowPageTurn = #(make-event-chord (list (make-music 'PageTurnEvent 'break-permission 'allow)))
51 stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP)))
52 startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START)))
56 % Code articulation definitions
58 noBeam = #(make-music 'BeamForbidEvent)
59 pipeSymbol = #(make-music 'BarCheck)
60 bracketOpenSymbol = #(make-span-event 'BeamEvent START)
61 bracketCloseSymbol = #(make-span-event 'BeamEvent STOP)
62 tildeSymbol = #(make-music 'TieEvent)
63 parenthesisOpenSymbol = #(make-span-event 'SlurEvent START)
64 parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP)
65 escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP)
66 escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START)
67 escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP)
68 escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START)
69 escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START)
73 \include "scale-definitions-init.ly"
75 melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom)
76 melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom)
78 laissezVibrer = #(make-music 'LaissezVibrerEvent)
79 repeatTie = #(make-music 'RepeatTieEvent)
81 \include "grace-init.ly"
82 \include "midi-init.ly"
83 \include "paper-defaults.ly"
86 mm = #(ly:output-def-lookup $defaultpaper 'mm)
87 unit = #(ly:output-def-lookup $defaultpaper 'unit)
93 \include "engraver-init.ly"
95 #(set-paper-dimension-variables (current-module))
98 #(set-default-paper-size (ly:get-option 'paper-size))
100 partCombineListener = \layout {
103 skipTypesetting = ##t
104 ignoreBarChecks = ##t
109 \include "dynamic-scripts-init.ly"
110 \include "spanners-init.ly"
111 \include "property-init.ly"
113 setDefaultDurationToQuarter = { c4 }
115 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
116 #(define musicQuotes (make-hash-table 29))
118 #(define toplevel-book-handler print-book-with-defaults)
119 #(define toplevel-music-handler collect-music-for-book)
120 #(define toplevel-score-handler collect-scores-for-book)
121 #(define toplevel-text-handler collect-scores-for-book)