]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
MusicXML: src-dir rather than srcdir.
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.11.53"
4
5 stemUp = \override Stem #'direction = #UP
6 stemDown = \override Stem #'direction = #DOWN 
7 stemNeutral = \revert Stem #'direction
8
9 slurUp = \override Slur #'direction = #UP
10 slurDown = \override Slur #'direction = #DOWN
11 slurNeutral = \revert Slur #'direction
12
13 slurDashed = {
14   \override Slur #'dash-period = #0.75
15   \override Slur #'dash-fraction = #0.4
16 }
17 slurDotted = {
18   \override Slur #'dash-period = #0.75
19   \override Slur #'dash-fraction = #0.1
20 }
21 slurSolid = {
22   \revert Slur #'dash-period
23   \revert Slur #'dash-fraction
24 }
25
26
27 phrasingSlurUp = \override PhrasingSlur #'direction = #UP
28 phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN
29 phrasingSlurNeutral = \revert PhrasingSlur #'direction
30
31 phrasingSlurDashed = {
32   \override PhrasingSlur #'dash-period = #0.75
33   \override PhrasingSlur #'dash-fraction = #0.4
34 }
35 phrasingSlurDotted = {
36   \override PhrasingSlur #'dash-period = #0.75
37   \override PhrasingSlur #'dash-fraction = #0.1
38 }
39 phrasingSlurSolid = {
40   \revert PhrasingSlur #'dash-period
41   \revert PhrasingSlur #'dash-fraction
42 }
43
44 mergeDifferentlyDottedOn = {
45   \override Staff.NoteCollision #'merge-differently-dotted = ##t
46 }
47 mergeDifferentlyDottedOff = {
48   \revert Staff.NoteCollision #'merge-differently-dotted
49 }
50
51 mergeDifferentlyHeadedOn = {
52   \override Staff.NoteCollision #'merge-differently-headed = ##t
53 }
54 mergeDifferentlyHeadedOff = {
55   \revert Staff.NoteCollision #'merge-differently-headed
56 }
57
58 shiftOn = \override NoteColumn #'horizontal-shift = #1
59 shiftOnn = \override NoteColumn #'horizontal-shift = #2
60 shiftOnnn = \override NoteColumn #'horizontal-shift = #3
61 shiftOff = \revert NoteColumn #'horizontal-shift
62
63 tieUp = \override Tie #'direction = #UP
64 tieDown = \override Tie #'direction = #DOWN
65 tieNeutral = \revert Tie #'direction
66
67 tieDashed = {
68   \override Tie #'dash-period = #0.75
69   \override Tie #'dash-fraction = #0.4
70 }
71 tieDotted = {
72   \override Tie #'dash-period = #0.75
73   \override Tie #'dash-fraction = #0.1
74 }
75 tieSolid = {
76   \revert Tie #'dash-period
77   \revert Tie #'dash-fraction
78 }
79
80 easyHeadsOn = {
81   \override NoteHead #'stencil = #ly:note-head::brew-ez-stencil
82   \override NoteHead #'font-size = #-7
83   \override NoteHead #'font-family = #'sans
84   \override NoteHead #'font-series = #'bold
85 }
86
87 easyHeadsOff = {
88   \revert NoteHead #'stencil
89   \revert NoteHead #'font-size
90   \revert NoteHead #'font-family
91   \revert NoteHead #'font-series
92 }
93
94 aikenHeads = \set shapeNoteStyles = #'#(do re mi fa #f la ti)
95
96 sacredHarpHeads = \set shapeNoteStyles = #'#(fa #f la fa #f la mi)
97
98 dynamicUp = {
99   \override DynamicText #'direction = #UP
100   \override DynamicLineSpanner #'direction = #UP
101 }
102
103 dynamicDown = {
104   \override DynamicText #'direction = #DOWN
105   \override DynamicLineSpanner #'direction = #DOWN
106 }
107
108 dynamicNeutral = {
109   \revert DynamicText #'direction
110   \revert DynamicLineSpanner #'direction
111 }
112
113
114 dotsUp = \override Dots #'direction = #UP
115 dotsDown = \override Dots #'direction = #DOWN
116 dotsNeutral = \revert Dots #'direction
117
118 tupletUp = \override TupletBracket #'direction = #UP
119 tupletDown = \override TupletBracket #'direction = #DOWN
120 tupletNeutral = \revert TupletBracket #'direction
121
122 cadenzaOn = \set Timing.timing = ##f
123 cadenzaOff = {
124   \set Timing.timing = ##t
125   \set Timing.measurePosition = #ZERO-MOMENT
126 }
127
128 % dynamic ly:dir?  text script, articulation script ly:dir? 
129 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
130 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
131 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
132 voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice)
133 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
134
135 voiceOneStyle = {
136   \override NoteHead #'style = #'diamond
137   \override NoteHead #'color = #red
138   \override Stem #'color = #red
139   \override Beam #'color = #red
140 }
141 voiceTwoStyle = {
142   \override NoteHead #'style = #'triangle
143   \override NoteHead #'color = #blue
144   \override Stem #'color = #blue
145   \override Beam #'color = #blue
146 }
147 voiceThreeStyle = {
148   \override NoteHead #'style = #'xcircle
149   \override NoteHead #'color = #green
150   \override Stem #'color = #green
151   \override Beam #'color = #green
152 }
153 voiceFourStyle = {
154   \override NoteHead #'style = #'cross
155   \override NoteHead #'color = #magenta
156   \override Stem #'color = #magenta
157   \override Beam #'color = #magenta
158 }
159 voiceNeutralStyle = {
160   \revert NoteHead #'style
161   \revert NoteHead #'color
162   \revert Stem #'color
163   \revert Beam #'color
164 }
165
166 teeny = {
167   \set fontSize = #-3
168 }
169
170 tiny = {
171   \set fontSize = #-2
172 }
173
174 small = {
175   \set fontSize = #-1
176 }
177
178 normalsize = {
179   \set fontSize = #0
180 }
181
182 large = {
183   \set fontSize = #1
184 }
185
186 huge = {
187   \set fontSize = #2
188 }
189
190 %% End the incipit and print a ``normal line start''.
191 endincipit = \context Staff {
192   \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
193   \once \override Staff.Clef #'full-size-change = ##t
194   \once \override Staff.Clef #'non-default = ##t
195   \bar ""
196 }
197
198 autoBeamOff = \set autoBeaming = ##f
199 autoBeamOn = \set autoBeaming = ##t
200
201 textLengthOn = {
202   \override TextScript #'extra-spacing-width = #'(0 . 0)
203   \override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0)
204 }
205
206 textLengthOff = {
207   \override TextScript #'extra-spacing-width = #'(+inf.0 . -inf.0)
208   \override TextScript #'extra-spacing-height = #'(0 . 0)
209 }
210
211 balloonLengthOn = {
212   \override BalloonTextItem #'extra-spacing-width = #'(0 . 0)
213   \override BalloonTextItem #'extra-spacing-height = #'(-inf.0 . +inf.0)
214 }
215
216 balloonLengthOff = {
217   \override BalloonTextItem #'extra-spacing-width = #'(+inf.0 . -inf.0)
218   \override BalloonTextItem #'extra-spacing-height = #'(0 . 0)
219 }
220
221
222 showStaffSwitch = \set followVoice = ##t
223 hideStaffSwitch = \set followVoice = ##f
224
225 expandFullBarRests = {
226   \set Score.skipBars = ##f
227 }
228
229 compressFullBarRests = {
230   \set Score.skipBars = ##t
231 }
232
233 numericTimeSignature = {
234   \override Staff.TimeSignature #'style = #'()
235 }
236
237 defaultTimeSignature = {
238   \revert Staff.TimeSignature #'style
239 }
240
241
242 % For drawing vertical chord brackets with \arpeggio
243 % This is a shorthand for the value of the print-function property 
244 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
245 % cross-staff brackets are desired. 
246
247 arpeggio = #(make-music 'ArpeggioEvent)
248
249 arpeggioArrowUp = {
250   \revert Arpeggio  #'stencil
251   \revert Arpeggio #'X-extent
252   \override Arpeggio  #'arpeggio-direction = #UP
253 }
254 arpeggioArrowDown = {
255   \revert Arpeggio #'stencil
256   \revert Arpeggio #'X-extent
257   \override Arpeggio  #'arpeggio-direction = #DOWN
258 }
259 arpeggioNormal = {
260   \revert Arpeggio #'stencil
261   \revert Arpeggio #'X-extent
262   \revert Arpeggio  #'arpeggio-direction
263 }
264 arpeggioBracket = {
265   \revert Arpeggio #'X-extent
266   \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
267 }
268 arpeggioParenthesis = {
269   \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
270   \override Arpeggio #'X-extent = #ly:grob::stencil-width
271 }
272
273 glissando = #(make-music 'GlissandoEvent)
274
275 fermataMarkup = \markup { \musicglyph #"scripts.ufermata" } 
276
277 hideNotes = {
278   % hide notes, accidentals, etc.
279   \override Dots #'transparent = ##t
280   \override NoteHead #'transparent = ##t
281   \override NoteHead #'no-ledgers = ##t
282   \override Stem #'transparent = ##t
283   \override Beam #'transparent = ##t
284   \override Accidental #'transparent = ##t
285 }
286
287
288 unHideNotes = {
289   \revert Accidental #'transparent
290   \revert Beam #'transparent
291   \revert Stem #'transparent
292   \revert NoteHead #'transparent
293   \revert NoteHead #'no-ledgers
294   \revert Dots #'transparent
295 }
296
297 germanChords = {
298   \set chordRootNamer = #(chord-name->german-markup #t)
299   \set chordNoteNamer = #note-name->german-markup
300 }
301 semiGermanChords = {
302   \set chordRootNamer = #(chord-name->german-markup #f)
303   \set chordNoteNamer = #note-name->german-markup
304 }
305
306 frenchChords = {
307   \set chordRootNamer = #(chord-name->italian-markup #t)
308   \set chordPrefixSpacer = #0.4
309 }
310
311 italianChords = {
312   \set chordRootNamer = #(chord-name->italian-markup #f)
313   \set chordPrefixSpacer = #0.4
314 }
315
316 improvisationOn = {
317   \set squashedPosition = #0
318   \override NoteHead #'style = #'slash
319   \override Accidental #'stencil = ##f
320 }
321
322 improvisationOff = {
323   \unset squashedPosition
324   \revert NoteHead #'style
325   \revert Accidental #'stencil
326 }
327
328 textSpannerUp = \override TextSpanner #'direction = #UP
329 textSpannerDown = \override TextSpanner #'direction = #DOWN
330 textSpannerNeutral = \revert TextSpanner #'direction
331
332
333
334 bassFigureExtendersOn = {
335   \set useBassFigureExtenders = ##t
336   \set Staff.useBassFigureExtenders = ##t
337 }
338
339 bassFigureExtendersOff = {
340   \set useBassFigureExtenders = ##f
341   \set Staff.useBassFigureExtenders = ##f
342 }
343
344 bassFigureStaffAlignmentDown = {
345   \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
346 }
347
348 bassFigureStaffAlignmentUp = {
349   \override Staff.BassFigureAlignmentPositioning #'direction = #UP
350 }
351
352 bassFigureStaffAlignmentNeutral = {
353   \revert Staff.BassFigureAlignmentPositioning #'direction
354 }
355
356 predefinedFretboardsOff = {  
357   \set FretBoards.predefinedDiagramTable = ##f
358 }
359
360 predefinedFretboardsOn = {
361   \set FretBoards.predefinedDiagramTable = #fretboard-table
362 }
363
364 pointAndClickOff = #(define-music-function (parser location) ()
365                       (ly:set-option 'point-and-click #f)
366                       (make-music 'SequentialMusic 'void #t))
367
368 pointAndClickOn = #(define-music-function (parser location) ()
369                       (ly:set-option 'point-and-click #t)
370                       (make-music 'SequentialMusic 'void #t))