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 '())))
50 stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP)))
51 startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START)))
55 % Code articulation definitions
57 noBeam = #(make-music 'BeamForbidEvent)
58 pipeSymbol = #(make-music 'BarCheck)
59 bracketOpenSymbol = #(make-span-event 'BeamEvent START)
60 bracketCloseSymbol = #(make-span-event 'BeamEvent STOP)
61 tildeSymbol = #(make-music 'TieEvent)
62 parenthesisOpenSymbol = #(make-span-event 'SlurEvent START)
63 parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP)
64 escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP)
65 escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START)
66 escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP)
67 escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START)
68 escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START)
72 \include "scale-definitions-init.ly"
74 melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom)
75 melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom)
77 laissezVibrer = #(make-music 'LaissezVibrerEvent)
78 repeatTie = #(make-music 'RepeatTieEvent)
80 \include "grace-init.ly"
81 \include "midi-init.ly"
82 \include "paper-defaults.ly"
85 mm = #(ly:output-def-lookup $defaultpaper 'mm)
86 unit = #(ly:output-def-lookup $defaultpaper 'unit)
92 \include "engraver-init.ly"
94 #(set-paper-dimension-variables (current-module))
97 #(set-default-paper-size (ly:get-option 'paper-size))
100 partCombineListener = \layout {
103 \consists Note_heads_engraver
104 \consists Rest_engraver
105 \type "Recording_group_engraver"
106 recordEventSequence = #notice-the-events-for-pc
110 skipTypesetting = ##t
111 ignoreBarChecks = ##t
115 #(set-part-combine-listener partCombineListener)
117 \include "dynamic-scripts-init.ly"
118 \include "spanners-init.ly"
119 \include "property-init.ly"
121 setDefaultDurationToQuarter = { c4 }
123 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
124 #(define musicQuotes (make-hash-table 29))
126 #(define toplevel-book-handler print-book-with-defaults)
127 #(define toplevel-music-handler collect-music-for-book)
128 #(define toplevel-score-handler collect-scores-for-book)
129 #(define toplevel-text-handler collect-scores-for-book)