Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(220)

Delta Between Two Patch Sets: ly/property-init.ly

Issue 6635050: Make arguments like Context.GrobName accessible as symbol lists (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Left Patch Set: Fix a few bugs, modify \tweak syntax, demonstrate high impact conversion Created 12 years, 5 months ago
Right Patch Set: Allow \override Accidental.color = #red (dot between grob and property) Created 12 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « ly/music-functions-init.ly ('k') | python/convertrules.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 % property-init.ly 1 % property-init.ly
2 2
3 \version "2.17.5" 3 \version "2.17.6"
4 4
5 %% for dashed slurs, phrasing slurs, and ties 5 %% for dashed slurs, phrasing slurs, and ties
6 #(define (make-simple-dash-definition dash-fraction dash-period) 6 #(define (make-simple-dash-definition dash-fraction dash-period)
7 (list (list 0 1 dash-fraction dash-period))) 7 (list (list 0 1 dash-fraction dash-period)))
8 8
9 %% common definition for all note head styles reverting 9 %% common definition for all note head styles reverting
10 %% (palm mute, harmonics, dead notes, ...) 10 %% (palm mute, harmonics, dead notes, ...)
11 defaultNoteHeads = 11 defaultNoteHeads =
12 #(define-music-function (parser location) () 12 #(define-music-function (parser location) ()
13 (_i "Revert to the default note head style.") 13 (_i "Revert to the default note head style.")
(...skipping 17 matching lines...) Expand all
31 31
32 %% arpeggios 32 %% arpeggios
33 33
34 % For drawing vertical chord brackets with \arpeggio 34 % For drawing vertical chord brackets with \arpeggio
35 % This is a shorthand for the value of the print-function property 35 % This is a shorthand for the value of the print-function property
36 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 36 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
37 % cross-staff brackets are desired. 37 % cross-staff brackets are desired.
38 38
39 arpeggio = #(make-music 'ArpeggioEvent) 39 arpeggio = #(make-music 'ArpeggioEvent)
40 arpeggioArrowUp = { 40 arpeggioArrowUp = {
41 \revert Arpeggio stencil 41 \revert Arpeggio.stencil
42 \revert Arpeggio X-extent 42 \revert Arpeggio.X-extent
43 \override Arpeggio arpeggio-direction = #UP 43 \override Arpeggio.arpeggio-direction = #UP
44 } 44 }
45 arpeggioArrowDown = { 45 arpeggioArrowDown = {
46 \revert Arpeggio stencil 46 \revert Arpeggio.stencil
47 \revert Arpeggio X-extent 47 \revert Arpeggio.X-extent
48 \override Arpeggio arpeggio-direction = #DOWN 48 \override Arpeggio.arpeggio-direction = #DOWN
49 } 49 }
50 arpeggioNormal = { 50 arpeggioNormal = {
51 \revert Arpeggio stencil 51 \revert Arpeggio.stencil
52 \revert Arpeggio X-extent 52 \revert Arpeggio.X-extent
53 \revert Arpeggio arpeggio-direction 53 \revert Arpeggio.arpeggio-direction
54 \revert Arpeggio dash-definition 54 \revert Arpeggio.dash-definition
55 } 55 }
56 arpeggioBracket = { 56 arpeggioBracket = {
57 \revert Arpeggio X-extent 57 \revert Arpeggio.X-extent
58 \override Arpeggio stencil = #ly:arpeggio::brew-chord-bracket 58 \override Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
59 } 59 }
60 arpeggioParenthesis = { 60 arpeggioParenthesis = {
61 \override Arpeggio stencil = #ly:arpeggio::brew-chord-slur 61 \override Arpeggio.stencil = #ly:arpeggio::brew-chord-slur
62 \override Arpeggio X-extent = #ly:grob::stencil-width 62 \override Arpeggio.X-extent = #ly:grob::stencil-width
63 \revert Arpeggio dash-definition 63 \revert Arpeggio.dash-definition
64 } 64 }
65 arpeggioParenthesisDashed = { 65 arpeggioParenthesisDashed = {
66 \override Arpeggio stencil = #ly:arpeggio::brew-chord-slur 66 \override Arpeggio.stencil = #ly:arpeggio::brew-chord-slur
67 \override Arpeggio X-extent = #ly:grob::stencil-width 67 \override Arpeggio.X-extent = #ly:grob::stencil-width
68 \override Arpeggio dash-definition = #'((0 1 0.4 0.75)) 68 \override Arpeggio.dash-definition = #'((0 1 0.4 0.75))
69 } 69 }
70 70
71 71
72 %% auto beaming 72 %% auto beaming
73 73
74 autoBeamOn = \set autoBeaming = ##t 74 autoBeamOn = \set autoBeaming = ##t
75 autoBeamOff = \set autoBeaming = ##f 75 autoBeamOff = \set autoBeaming = ##f
76 76
77 77
78 %% balloon length 78 %% balloon length
79 79
80 balloonLengthOn = { 80 balloonLengthOn = {
81 \override BalloonTextItem extra-spacing-width = #'(0 . 0) 81 \override BalloonTextItem.extra-spacing-width = #'(0 . 0)
82 \override BalloonTextItem extra-spacing-height = #'(-inf.0 . +inf.0) 82 \override BalloonTextItem.extra-spacing-height = #'(-inf.0 . +inf.0)
83 } 83 }
84 balloonLengthOff = { 84 balloonLengthOff = {
85 \override BalloonTextItem extra-spacing-width = #'(+inf.0 . -inf.0) 85 \override BalloonTextItem.extra-spacing-width = #'(+inf.0 . -inf.0)
86 \override BalloonTextItem extra-spacing-height = #'(0 . 0) 86 \override BalloonTextItem.extra-spacing-height = #'(0 . 0)
87 } 87 }
88
89
90 %% bar lines
91
92 defineBarLine =
93 #(define-void-function
94 (parser location bar glyph-list) (string? list?)
95 (_i "Define bar line settings for bar line @var{bar}.
96 The list @var{glyph-list} must have three entries which define
97 the appearance at the end of line, at the beginning of the next line,
98 and the span bar, respectively." )
99 (if (not (= (length glyph-list) 3))
100 (ly:error (_ "Argument list for bar '~a' must have three components.") bar )
101 (define-bar-line bar
102 (car glyph-list)
103 (cadr glyph-list)
104 (caddr glyph-list))))
88 105
89 106
90 %% bass figures 107 %% bass figures
91 108
92 bassFigureExtendersOn = { 109 bassFigureExtendersOn = {
93 \set useBassFigureExtenders = ##t 110 \set useBassFigureExtenders = ##t
94 \set Staff.useBassFigureExtenders = ##t 111 \set Staff.useBassFigureExtenders = ##t
95 } 112 }
96 bassFigureExtendersOff = { 113 bassFigureExtendersOff = {
97 \set useBassFigureExtenders = ##f 114 \set useBassFigureExtenders = ##f
98 \set Staff.useBassFigureExtenders = ##f 115 \set Staff.useBassFigureExtenders = ##f
99 } 116 }
100 bassFigureStaffAlignmentDown = 117 bassFigureStaffAlignmentDown =
101 \override Staff.BassFigureAlignmentPositioning direction = #DOWN 118 \override Staff.BassFigureAlignmentPositioning.direction = #DOWN
102 bassFigureStaffAlignmentUp = 119 bassFigureStaffAlignmentUp =
103 \override Staff.BassFigureAlignmentPositioning direction = #UP 120 \override Staff.BassFigureAlignmentPositioning.direction = #UP
104 bassFigureStaffAlignmentNeutral = 121 bassFigureStaffAlignmentNeutral =
105 \revert Staff.BassFigureAlignmentPositioning direction 122 \revert Staff.BassFigureAlignmentPositioning.direction
106 123
107 124
108 %% cadenzas 125 %% cadenzas
109 126
110 cadenzaOn = { 127 cadenzaOn = {
111 \set Timing.timing = ##f 128 \set Timing.timing = ##f
112 \set Timing.autoBeaming = ##f 129 \set Timing.autoBeaming = ##f
113 } 130 }
114 131
115 cadenzaOff = { 132 cadenzaOff = {
(...skipping 27 matching lines...) Expand all
143 160
144 161
145 %% compressFullBarRests 162 %% compressFullBarRests
146 163
147 compressFullBarRests = \set Score.skipBars = ##t 164 compressFullBarRests = \set Score.skipBars = ##t
148 expandFullBarRests = \set Score.skipBars = ##f 165 expandFullBarRests = \set Score.skipBars = ##f
149 166
150 167
151 %% dots 168 %% dots
152 169
153 dotsUp = \override Dots direction = #UP 170 dotsUp = \override Dots.direction = #UP
154 dotsDown = \override Dots direction = #DOWN 171 dotsDown = \override Dots.direction = #DOWN
155 dotsNeutral = \revert Dots direction 172 dotsNeutral = \revert Dots.direction
156 173
157 174
158 %% dynamics 175 %% dynamics
159 176
160 dynamicUp = { 177 dynamicUp = {
161 \override DynamicText direction = #UP 178 \override DynamicText.direction = #UP
162 \override DynamicLineSpanner direction = #UP 179 \override DynamicLineSpanner.direction = #UP
163 } 180 }
164 dynamicDown = { 181 dynamicDown = {
165 \override DynamicText direction = #DOWN 182 \override DynamicText.direction = #DOWN
166 \override DynamicLineSpanner direction = #DOWN 183 \override DynamicLineSpanner.direction = #DOWN
167 } 184 }
168 dynamicNeutral = { 185 dynamicNeutral = {
169 \revert DynamicText direction 186 \revert DynamicText.direction
170 \revert DynamicLineSpanner direction 187 \revert DynamicLineSpanner.direction
171 } 188 }
172 189
173 190
174 %% easy heads 191 %% easy heads
175 192
176 easyHeadsOn = { 193 easyHeadsOn = {
177 \override NoteHead stencil = #note-head::brew-ez-stencil 194 \override NoteHead.stencil = #note-head::brew-ez-stencil
178 \override NoteHead font-size = #-8 195 \override NoteHead.font-size = #-8
179 \override NoteHead font-family = #'sans 196 \override NoteHead.font-family = #'sans
180 \override NoteHead font-series = #'bold 197 \override NoteHead.font-series = #'bold
181 } 198 }
182 easyHeadsOff = { 199 easyHeadsOff = {
183 \revert NoteHead stencil 200 \revert NoteHead.stencil
184 \revert NoteHead font-size 201 \revert NoteHead.font-size
185 \revert NoteHead font-family 202 \revert NoteHead.font-family
186 \revert NoteHead font-series 203 \revert NoteHead.font-series
187 } 204 }
188 205
189 206
190 %% endincipit 207 %% endincipit
191 208
192 %% End the incipit and print a ``normal line start''. 209 %% End the incipit and print a ``normal line start''.
193 endincipit = \context Staff { 210 endincipit = \context Staff {
194 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit 211 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
195 \once \override Staff.Clef full-size-change = ##t 212 \once \override Staff.Clef.full-size-change = ##t
196 \once \override Staff.Clef non-default = ##t 213 \once \override Staff.Clef.non-default = ##t
197 \bar "" 214 \bar ""
198 } 215 }
199 216
200 217
201 %% fermata markup 218 %% fermata markup
202 219
203 fermataMarkup = 220 fermataMarkup =
204 #(make-music 'MultiMeasureTextEvent 221 #(make-music 'MultiMeasureTextEvent
205 'tweaks (list 222 'tweaks (list
206 ;; Set the 'text based on the 'direction 223 ;; Set the 'text based on the 'direction
(...skipping 29 matching lines...) Expand all
236 harmonicNote = 253 harmonicNote =
237 #(define-music-function (parser location note) (ly:music?) 254 #(define-music-function (parser location note) (ly:music?)
238 (_i "Print @var{note} with a diamond-shaped note head.") 255 (_i "Print @var{note} with a diamond-shaped note head.")
239 (style-note-heads 'NoteHead 'harmonic note)) 256 (style-note-heads 'NoteHead 'harmonic note))
240 257
241 258
242 %% hideNotes 259 %% hideNotes
243 260
244 hideNotes = { 261 hideNotes = {
245 % hide notes, accidentals, etc. 262 % hide notes, accidentals, etc.
246 \override Dots transparent = ##t 263 \override Dots.transparent = ##t
247 \override NoteHead transparent = ##t 264 \override NoteHead.transparent = ##t
248 \override NoteHead no-ledgers = ##t 265 \override NoteHead.no-ledgers = ##t
249 \override Stem transparent = ##t 266 \override Stem.transparent = ##t
250 \override Flag transparent = ##t 267 \override Flag.transparent = ##t
251 \override Beam transparent = ##t 268 \override Beam.transparent = ##t
252 \override Accidental transparent = ##t 269 \override Accidental.transparent = ##t
253 \override Rest transparent = ##t 270 \override Rest.transparent = ##t
254 \override TabNoteHead transparent = ##t 271 \override TabNoteHead.transparent = ##t
255 } 272 }
256 unHideNotes = { 273 unHideNotes = {
257 \revert Accidental transparent 274 \revert Accidental.transparent
258 \revert Beam transparent 275 \revert Beam.transparent
259 \revert Stem transparent 276 \revert Stem.transparent
260 \revert Flag transparent 277 \revert Flag.transparent
261 \revert NoteHead transparent 278 \revert NoteHead.transparent
262 \revert NoteHead no-ledgers 279 \revert NoteHead.no-ledgers
263 \revert Dots transparent 280 \revert Dots.transparent
264 \revert Rest transparent 281 \revert Rest.transparent
265 \revert TabNoteHead transparent 282 \revert TabNoteHead.transparent
266 } 283 }
267 284
268 285
269 %% improvisation 286 %% improvisation
270 287
271 improvisationOn = { 288 improvisationOn = {
272 \set squashedPosition = #0 289 \set squashedPosition = #0
273 \override NoteHead style = #'slash 290 \override NoteHead.style = #'slash
274 \override Accidental stencil = ##f 291 \override Accidental.stencil = ##f
275 \override AccidentalCautionary stencil = ##f 292 \override AccidentalCautionary.stencil = ##f
276 } 293 }
277 improvisationOff = { 294 improvisationOff = {
278 \unset squashedPosition 295 \unset squashedPosition
279 \revert NoteHead style 296 \revert NoteHead.style
280 \revert Accidental stencil 297 \revert Accidental.stencil
281 \revert AccidentalCautionary stencil 298 \revert AccidentalCautionary.stencil
282 } 299 }
283 300
284 301
285 %% merging 302 %% merging
286 303
287 mergeDifferentlyDottedOn = 304 mergeDifferentlyDottedOn =
288 \override Staff.NoteCollision merge-differently-dotted = ##t 305 \override Staff.NoteCollision.merge-differently-dotted = ##t
289 mergeDifferentlyDottedOff = 306 mergeDifferentlyDottedOff =
290 \revert Staff.NoteCollision merge-differently-dotted 307 \revert Staff.NoteCollision.merge-differently-dotted
291 mergeDifferentlyHeadedOn = 308 mergeDifferentlyHeadedOn =
292 \override Staff.NoteCollision merge-differently-headed = ##t 309 \override Staff.NoteCollision.merge-differently-headed = ##t
293 mergeDifferentlyHeadedOff = 310 mergeDifferentlyHeadedOff =
294 \revert Staff.NoteCollision merge-differently-headed 311 \revert Staff.NoteCollision.merge-differently-headed
295 312
296 313
297 %% numeric time signature 314 %% numeric time signature
298 315
299 numericTimeSignature = \override Staff.TimeSignature style = #'numbered 316 numericTimeSignature = \override Staff.TimeSignature.style = #'numbered
300 defaultTimeSignature = \revert Staff.TimeSignature style 317 defaultTimeSignature = \revert Staff.TimeSignature.style
301 318
302 319
303 %% palm mutes 320 %% palm mutes
304 321
305 palmMuteOn = 322 palmMuteOn =
306 #(define-music-function (parser location) () 323 #(define-music-function (parser location) ()
307 (_i "Set the default note head style to a triangle-shaped style.") 324 (_i "Set the default note head style to a triangle-shaped style.")
308 (override-head-style 'NoteHead 'do)) 325 (override-head-style 'NoteHead 'do))
309 palmMuteOff = \defaultNoteHeads 326 palmMuteOff = \defaultNoteHeads
310 palmMute = 327 palmMute =
311 #(define-music-function (parser location note) (ly:music?) 328 #(define-music-function (parser location note) (ly:music?)
312 (_i "Print @var{note} with a triangle-shaped note head.") 329 (_i "Print @var{note} with a triangle-shaped note head.")
313 (style-note-heads 'NoteHead 'do note)) 330 (style-note-heads 'NoteHead 'do note))
314 331
315 332
316 %% phrasing slurs 333 %% phrasing slurs
317 334
318 % directions 335 % directions
319 phrasingSlurUp = \override PhrasingSlur direction = #UP 336 phrasingSlurUp = \override PhrasingSlur.direction = #UP
320 phrasingSlurDown = \override PhrasingSlur direction = #DOWN 337 phrasingSlurDown = \override PhrasingSlur.direction = #DOWN
321 phrasingSlurNeutral = \revert PhrasingSlur direction 338 phrasingSlurNeutral = \revert PhrasingSlur.direction
322 339
323 % dash-patterns (make-simple-dash-definition defined at top of file) 340 % dash-patterns (make-simple-dash-definition defined at top of file)
324 phrasingSlurDashPattern = 341 phrasingSlurDashPattern =
325 #(define-music-function (parser location dash-fraction dash-period) 342 #(define-music-function (parser location dash-fraction dash-period)
326 (number? number?) 343 (number? number?)
327 (_i "Set up a custom style of dash pattern for @var{dash-fraction} ratio of 344 (_i "Set up a custom style of dash pattern for @var{dash-fraction} ratio of
328 line to space repeated at @var{dash-period} interval for phrasing slurs.") 345 line to space repeated at @var{dash-period} interval for phrasing slurs.")
329 #{ 346 #{
330 \override PhrasingSlur dash-definition = 347 \override PhrasingSlur.dash-definition =
331 $(make-simple-dash-definition dash-fraction dash-period) 348 $(make-simple-dash-definition dash-fraction dash-period)
332 #}) 349 #})
333 phrasingSlurDashed = 350 phrasingSlurDashed =
334 \override PhrasingSlur dash-definition = #'((0 1 0.4 0.75)) 351 \override PhrasingSlur.dash-definition = #'((0 1 0.4 0.75))
335 phrasingSlurDotted = 352 phrasingSlurDotted =
336 \override PhrasingSlur dash-definition = #'((0 1 0.1 0.75)) 353 \override PhrasingSlur.dash-definition = #'((0 1 0.1 0.75))
337 phrasingSlurHalfDashed = 354 phrasingSlurHalfDashed =
338 \override PhrasingSlur dash-definition = #'((0 0.5 0.4 0.75) 355 \override PhrasingSlur.dash-definition = #'((0 0.5 0.4 0.75)
339 (0.5 1 1 1)) 356 (0.5 1 1 1))
340 phrasingSlurHalfSolid = 357 phrasingSlurHalfSolid =
341 \override PhrasingSlur dash-definition = #'((0 0.5 1 1) 358 \override PhrasingSlur.dash-definition = #'((0 0.5 1 1)
342 (0.5 1 0.4 0.75)) 359 (0.5 1 0.4 0.75))
343 phrasingSlurSolid = 360 phrasingSlurSolid =
344 \revert PhrasingSlur dash-definition 361 \revert PhrasingSlur.dash-definition
345 362
346 363
347 %% point and click 364 %% point and click
348 365
349 pointAndClickOn = 366 pointAndClickOn =
350 #(define-music-function (parser location) () 367 #(define-music-function (parser location) ()
351 (_i "Enable generation of code in final-format (e.g. pdf) files to reference the 368 (_i "Enable generation of code in final-format (e.g. pdf) files to reference the
352 originating lilypond source statement; 369 originating lilypond source statement;
353 this is helpful when developing a score but generates bigger final-format files. ") 370 this is helpful when developing a score but generates bigger final-format files. ")
354 (ly:set-option 'point-and-click #t) 371 (ly:set-option 'point-and-click #t)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 southernHarmonyHeadsMinor = 406 southernHarmonyHeadsMinor =
390 \set shapeNoteStyles = #'#(laThin miThin faThin sol laThin faThin sol) 407 \set shapeNoteStyles = #'#(laThin miThin faThin sol laThin faThin sol)
391 walkerHeads = 408 walkerHeads =
392 \set shapeNoteStyles = #'#(doWalker reWalker miWalker faWalker solFunk laWalke r tiWalker) 409 \set shapeNoteStyles = #'#(doWalker reWalker miWalker faWalker solFunk laWalke r tiWalker)
393 walkerHeadsMinor = 410 walkerHeadsMinor =
394 \set shapeNoteStyles = #'#(laWalker tiWalker doWalker reWalker miWalker faWalk er solFunk) 411 \set shapeNoteStyles = #'#(laWalker tiWalker doWalker reWalker miWalker faWalk er solFunk)
395 412
396 413
397 %% shifts 414 %% shifts
398 415
399 shiftOn = \override NoteColumn horizontal-shift = #1 416 shiftOn = \override NoteColumn.horizontal-shift = #1
400 shiftOnn = \override NoteColumn horizontal-shift = #2 417 shiftOnn = \override NoteColumn.horizontal-shift = #2
401 shiftOnnn = \override NoteColumn horizontal-shift = #3 418 shiftOnnn = \override NoteColumn.horizontal-shift = #3
402 shiftOff = \revert NoteColumn horizontal-shift 419 shiftOff = \revert NoteColumn.horizontal-shift
403 420
404 421
405 %% slurs 422 %% slurs
406 423
407 % directions 424 % directions
408 slurUp = \override Slur direction = #UP 425 slurUp = \override Slur.direction = #UP
409 slurDown = \override Slur direction = #DOWN 426 slurDown = \override Slur.direction = #DOWN
410 slurNeutral = \revert Slur direction 427 slurNeutral = \revert Slur.direction
411 428
412 % dash-patterns (make-simple-dash-definition defined at top of file) 429 % dash-patterns (make-simple-dash-definition defined at top of file)
413 slurDashPattern = 430 slurDashPattern =
414 #(define-music-function (parser location dash-fraction dash-period) 431 #(define-music-function (parser location dash-fraction dash-period)
415 (number? number?) 432 (number? number?)
416 (_i "Set up a custom style of dash pattern for @var{dash-fraction} 433 (_i "Set up a custom style of dash pattern for @var{dash-fraction}
417 ratio of line to space repeated at @var{dash-period} interval for slurs.") 434 ratio of line to space repeated at @var{dash-period} interval for slurs.")
418 #{ 435 #{
419 \override Slur dash-definition = 436 \override Slur.dash-definition =
420 $(make-simple-dash-definition dash-fraction dash-period) 437 $(make-simple-dash-definition dash-fraction dash-period)
421 #}) 438 #})
422 slurDashed = \override Slur dash-definition = #'((0 1 0.4 0.75)) 439 slurDashed = \override Slur.dash-definition = #'((0 1 0.4 0.75))
423 slurDotted = \override Slur dash-definition = #'((0 1 0.1 0.75)) 440 slurDotted = \override Slur.dash-definition = #'((0 1 0.1 0.75))
424 slurHalfDashed = \override Slur dash-definition = #'((0 0.5 0.4 0.75) 441 slurHalfDashed = \override Slur.dash-definition = #'((0 0.5 0.4 0.75)
425 (0.5 1 1 1)) 442 (0.5 1 1 1))
426 slurHalfSolid = \override Slur dash-definition = #'((0 0.5 1 1) 443 slurHalfSolid = \override Slur.dash-definition = #'((0 0.5 1 1)
427 (0.5 1 0.4 0.75)) 444 (0.5 1 0.4 0.75))
428 slurSolid = \revert Slur dash-definition 445 slurSolid = \revert Slur.dash-definition
429 446
430 447
431 %% staff switches 448 %% staff switches
432 449
433 showStaffSwitch = \set followVoice = ##t 450 showStaffSwitch = \set followVoice = ##t
434 hideStaffSwitch = \set followVoice = ##f 451 hideStaffSwitch = \set followVoice = ##f
435 452
436 453
437 %% stems 454 %% stems
438 455
439 stemUp = \override Stem direction = #UP 456 stemUp = \override Stem.direction = #UP
440 stemDown = \override Stem direction = #DOWN 457 stemDown = \override Stem.direction = #DOWN
441 stemNeutral = \revert Stem direction 458 stemNeutral = \revert Stem.direction
442 459
443 460
444 %% tablature 461 %% tablature
445 462
446 % switch to full notation 463 % switch to full notation
447 tabFullNotation = { 464 tabFullNotation = {
448 % time signature 465 % time signature
449 \revert TabStaff.TimeSignature stencil 466 \revert TabStaff.TimeSignature.stencil
450 % stems (the half note gets a double stem) 467 % stems (the half note gets a double stem)
451 \revert TabVoice.Stem length 468 \revert TabVoice.Stem.length
452 \revert TabVoice.Stem no-stem-extend 469 \revert TabVoice.Stem.no-stem-extend
453 \revert TabVoice.Flag style 470 \revert TabVoice.Flag.style
454 \revert TabVoice.Stem details 471 \revert TabVoice.Stem.details
455 \revert TabVoice.Stem stencil 472 \revert TabVoice.Stem.stencil
456 \revert TabVoice.Flag stencil 473 \revert TabVoice.Flag.stencil
457 \override TabVoice.Stem stencil = #tabvoice::draw-double-stem-for-half-notes 474 \override TabVoice.Stem.stencil = #tabvoice::draw-double-stem-for-half-notes
458 \override TabVoice.Stem X-extent = #tabvoice::make-double-stem-width-for-half- notes 475 \override TabVoice.Stem.X-extent = #tabvoice::make-double-stem-width-for-half- notes
459 \set TabVoice.autoBeaming = ##t 476 \set TabVoice.autoBeaming = ##t
460 \revert TabVoice.NoteColumn ignore-collision 477 \revert TabVoice.NoteColumn.ignore-collision
461 % beams, dots 478 % beams, dots
462 \revert TabVoice.Beam stencil 479 \revert TabVoice.Beam.stencil
463 \revert TabVoice.StemTremolo stencil 480 \revert TabVoice.StemTremolo.stencil
464 \revert TabVoice.Dots stencil 481 \revert TabVoice.Dots.stencil
465 \revert TabVoice.Tie stencil 482 \revert TabVoice.Tie.stencil
466 \revert TabVoice.Tie after-line-breaking 483 \revert TabVoice.Tie.after-line-breaking
467 \revert TabVoice.RepeatTie stencil 484 \revert TabVoice.RepeatTie.stencil
468 \revert TabVoice.RepeatTie after-line-breaking 485 \revert TabVoice.RepeatTie.after-line-breaking
469 \revert TabVoice.LaissezVibrerTie stencil 486 \revert TabVoice.LaissezVibrerTie.stencil
470 \revert TabVoice.Slur stencil 487 \revert TabVoice.Slur.stencil
471 \revert TabVoice.PhrasingSlur stencil 488 \revert TabVoice.PhrasingSlur.stencil
472 % tuplet stuff 489 % tuplet stuff
473 \revert TabVoice.TupletBracket stencil 490 \revert TabVoice.TupletBracket.stencil
474 \revert TabVoice.TupletNumber stencil 491 \revert TabVoice.TupletNumber.stencil
475 % dynamic signs 492 % dynamic signs
476 \revert TabVoice.DynamicText stencil 493 \revert TabVoice.DynamicText.stencil
477 \revert TabVoice.DynamicTextSpanner stencil 494 \revert TabVoice.DynamicTextSpanner.stencil
478 \revert TabVoice.DynamicTextSpanner stencil 495 \revert TabVoice.DynamicTextSpanner.stencil
479 \revert TabVoice.Hairpin stencil 496 \revert TabVoice.Hairpin.stencil
480 % rests 497 % rests
481 \revert TabVoice.Rest stencil 498 \revert TabVoice.Rest.stencil
482 \revert TabVoice.MultiMeasureRest stencil 499 \revert TabVoice.MultiMeasureRest.stencil
483 \revert TabVoice.MultiMeasureRestNumber stencil 500 \revert TabVoice.MultiMeasureRestNumber.stencil
484 \revert TabVoice.MultiMeasureRestText stencil 501 \revert TabVoice.MultiMeasureRestText.stencil
485 % markups etc. 502 % markups etc.
486 \revert TabVoice.Glissando stencil 503 \revert TabVoice.Glissando.stencil
487 \revert TabVoice.Script stencil 504 \revert TabVoice.Script.stencil
488 \revert TabVoice.TextScript stencil 505 \revert TabVoice.TextScript.stencil
489 \revert TabVoice.TextSpanner stencil 506 \revert TabVoice.TextSpanner.stencil
490 \revert TabStaff.Arpeggio stencil 507 \revert TabStaff.Arpeggio.stencil
491 \revert TabStaff.NoteColumn ignore-collision 508 \revert TabStaff.NoteColumn.ignore-collision
492 } 509 }
493 510
494 %tie/repeat tie behaviour 511 %tie/repeat tie behaviour
495 hideSplitTiedTabNotes = { 512 hideSplitTiedTabNotes = {
496 \override TabVoice.TabNoteHead details.tied-properties.break-visibility = #all -invisible 513 \override TabVoice.TabNoteHead.details.tied-properties.break-visibility = #all -invisible
497 \override TabVoice.TabNoteHead details.tied-properties.parenthesize = ##f 514 \override TabVoice.TabNoteHead.details.tied-properties.parenthesize = ##f
498 \override TabVoice.TabNoteHead details.repeat-tied-properties.note-head-visibl e = ##f 515 \override TabVoice.TabNoteHead.details.repeat-tied-properties.note-head-visibl e = ##f
499 \override TabVoice.TabNoteHead details.repeat-tied-properties.parenthesize = # #f 516 \override TabVoice.TabNoteHead.details.repeat-tied-properties.parenthesize = # #f
500 } 517 }
501 518
502 showSplitTiedTabNotes = { 519 showSplitTiedTabNotes = {
503 \override TabVoice.TabNoteHead details.tied-properties.break-visibility = #beg in-of-line-visible 520 \override TabVoice.TabNoteHead.details.tied-properties.break-visibility = #beg in-of-line-visible
504 \override TabVoice.TabNoteHead details.tied-properties.parenthesize = ##t 521 \override TabVoice.TabNoteHead.details.tied-properties.parenthesize = ##t
505 \override TabVoice.TabNoteHead details.repeat-tied-properties.note-head-visibl e = ##t 522 \override TabVoice.TabNoteHead.details.repeat-tied-properties.note-head-visibl e = ##t
506 \override TabVoice.TabNoteHead details.repeat-tied-properties.parenthesize = # #t 523 \override TabVoice.TabNoteHead.details.repeat-tied-properties.parenthesize = # #t
507 } 524 }
508 525
509 %% text length 526 %% text length
510 527
511 textLengthOn = { 528 textLengthOn = {
512 \override TextScript extra-spacing-width = #'(0 . 0) 529 \override TextScript.extra-spacing-width = #'(0 . 0)
513 \override TextScript extra-spacing-height = #'(-inf.0 . +inf.0) 530 \override TextScript.extra-spacing-height = #'(-inf.0 . +inf.0)
514 } 531 }
515 textLengthOff = { 532 textLengthOff = {
516 \override TextScript extra-spacing-width = #'(+inf.0 . -inf.0) 533 \override TextScript.extra-spacing-width = #'(+inf.0 . -inf.0)
517 \override TextScript extra-spacing-height = #'(0 . 0) 534 \override TextScript.extra-spacing-height = #'(0 . 0)
518 } 535 }
519 536
520 537
521 %% text spanners 538 %% text spanners
522 539
523 textSpannerUp = \override TextSpanner direction = #UP 540 textSpannerUp = \override TextSpanner.direction = #UP
524 textSpannerDown = \override TextSpanner direction = #DOWN 541 textSpannerDown = \override TextSpanner.direction = #DOWN
525 textSpannerNeutral = \revert TextSpanner direction 542 textSpannerNeutral = \revert TextSpanner.direction
526 543
527 544
528 %% ties 545 %% ties
529 546
530 % directions 547 % directions
531 tieUp = \override Tie direction = #UP 548 tieUp = \override Tie.direction = #UP
532 tieDown = \override Tie direction = #DOWN 549 tieDown = \override Tie.direction = #DOWN
533 tieNeutral = \revert Tie direction 550 tieNeutral = \revert Tie.direction
534 551
535 % dash-patterns (make-simple-dash-definition defined at top of file) 552 % dash-patterns (make-simple-dash-definition defined at top of file)
536 tieDashPattern = 553 tieDashPattern =
537 #(define-music-function (parser location dash-fraction dash-period) 554 #(define-music-function (parser location dash-fraction dash-period)
538 (number? number?) 555 (number? number?)
539 (_i "Set up a custom style of dash pattern for @var{dash-fraction} 556 (_i "Set up a custom style of dash pattern for @var{dash-fraction}
540 ratio of line to space repeated at @var{dash-period} interval for ties.") 557 ratio of line to space repeated at @var{dash-period} interval for ties.")
541 #{ 558 #{
542 \override Tie dash-definition = 559 \override Tie.dash-definition =
543 $(make-simple-dash-definition dash-fraction dash-period) 560 $(make-simple-dash-definition dash-fraction dash-period)
544 #}) 561 #})
545 tieDashed = \override Tie dash-definition = #'((0 1 0.4 0.75)) 562 tieDashed = \override Tie.dash-definition = #'((0 1 0.4 0.75))
546 tieDotted = \override Tie dash-definition = #'((0 1 0.1 0.75)) 563 tieDotted = \override Tie.dash-definition = #'((0 1 0.1 0.75))
547 tieHalfDashed = \override Tie dash-definition = #'((0 0.5 0.4 0.75) 564 tieHalfDashed = \override Tie.dash-definition = #'((0 0.5 0.4 0.75)
548 (0.5 1 1 1)) 565 (0.5 1 1 1))
549 tieHalfSolid = \override Tie dash-definition = #'((0 0.5 1 1) 566 tieHalfSolid = \override Tie.dash-definition = #'((0 0.5 1 1)
550 (0.5 1 0.4 0.75)) 567 (0.5 1 0.4 0.75))
551 tieSolid = \revert Tie dash-definition 568 tieSolid = \revert Tie.dash-definition
552 569
553 570
554 %% tuplets 571 %% tuplets
555 572
556 tupletUp = \override TupletBracket direction = #UP 573 tupletUp = \override TupletBracket.direction = #UP
557 tupletDown = \override TupletBracket direction = #DOWN 574 tupletDown = \override TupletBracket.direction = #DOWN
558 tupletNeutral = \revert TupletBracket direction 575 tupletNeutral = \revert TupletBracket.direction
559 576
560 577
561 %% voice properties 578 %% voice properties
562 579
563 % dynamic ly:dir? text script, articulation script ly:dir? 580 % dynamic ly:dir? text script, articulation script ly:dir?
564 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice) 581 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
565 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice) 582 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
566 voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice) 583 voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice)
567 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice) 584 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
568 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice) 585 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
569 586
570 587
571 %% voice styles 588 %% voice styles
572 589
573 voiceOneStyle = { 590 voiceOneStyle = {
574 \override NoteHead style = #'diamond 591 \override NoteHead.style = #'diamond
575 \override NoteHead color = #red 592 \override NoteHead.color = #red
576 \override Stem color = #red 593 \override Stem.color = #red
577 \override Flag color = #red 594 \override Flag.color = #red
578 \override Beam color = #red 595 \override Beam.color = #red
579 } 596 }
580 voiceTwoStyle = { 597 voiceTwoStyle = {
581 \override NoteHead style = #'triangle 598 \override NoteHead.style = #'triangle
582 \override NoteHead color = #blue 599 \override NoteHead.color = #blue
583 \override Stem color = #blue 600 \override Stem.color = #blue
584 \override Flag color = #blue 601 \override Flag.color = #blue
585 \override Beam color = #blue 602 \override Beam.color = #blue
586 } 603 }
587 voiceThreeStyle = { 604 voiceThreeStyle = {
588 \override NoteHead style = #'xcircle 605 \override NoteHead.style = #'xcircle
589 \override NoteHead color = #green 606 \override NoteHead.color = #green
590 \override Stem color = #green 607 \override Stem.color = #green
591 \override Flag color = #green 608 \override Flag.color = #green
592 \override Beam color = #green 609 \override Beam.color = #green
593 } 610 }
594 voiceFourStyle = { 611 voiceFourStyle = {
595 \override NoteHead style = #'cross 612 \override NoteHead.style = #'cross
596 \override NoteHead color = #magenta 613 \override NoteHead.color = #magenta
597 \override Stem color = #magenta 614 \override Stem.color = #magenta
598 \override Flag color = #magenta 615 \override Flag.color = #magenta
599 \override Beam color = #magenta 616 \override Beam.color = #magenta
600 } 617 }
601 voiceNeutralStyle = { 618 voiceNeutralStyle = {
602 \revert NoteHead style 619 \revert NoteHead.style
603 \revert NoteHead color 620 \revert NoteHead.color
604 \revert Stem color 621 \revert Stem.color
605 \revert Flag color 622 \revert Flag.color
606 \revert Beam color 623 \revert Beam.color
607 } 624 }
608 625
626
627 %% volta brackets
628
629 allowVoltaHook =
630 #(define-void-function (parser location bar) (string?)
631 (allow-volta-hook bar))
609 632
610 %% x notes 633 %% x notes
611 634
612 xNotesOn = 635 xNotesOn =
613 #(define-music-function (parser location) () 636 #(define-music-function (parser location) ()
614 (_i "Set the default note head style to a cross-shaped style.") 637 (_i "Set the default note head style to a cross-shaped style.")
615 (override-head-style '(TabNoteHead NoteHead) 'cross)) 638 (override-head-style '(TabNoteHead NoteHead) 'cross))
616 xNotesOff = \defaultNoteHeads 639 xNotesOff = \defaultNoteHeads
617 xNote = 640 xNote =
618 #(define-music-function (parser location note) (ly:music?) 641 #(define-music-function (parser location note) (ly:music?)
619 (_i "Print @var{note} with a cross-shaped note head.") 642 (_i "Print @var{note} with a cross-shaped note head.")
620 (style-note-heads '(TabNoteHead NoteHead) 'cross note)) 643 (style-note-heads '(TabNoteHead NoteHead) 'cross note))
621 644
622 645
623 %% dead notes (these need to come after "x notes") 646 %% dead notes (these need to come after "x notes")
624 647
625 % Define aliases of cross-head notes for specific purposes 648 % Define aliases of cross-head notes for specific purposes
626 deadNotesOn = \xNotesOn 649 deadNotesOn = \xNotesOn
627 deadNotesOff = \xNotesOff 650 deadNotesOff = \xNotesOff
628 deadNote = #xNote 651 deadNote = #xNote
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b