5 %% for dashed slurs, phrasing slurs, and ties
6 #(define (make-simple-dash-definition dash-fraction dash-period)
7 (list (list 0 1 dash-fraction dash-period)))
12 % For drawing vertical chord brackets with \arpeggio
13 % This is a shorthand for the value of the print-function property
14 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
15 % cross-staff brackets are desired.
17 arpeggio = #(make-music 'ArpeggioEvent)
19 \revert Arpeggio #'stencil
20 \revert Arpeggio #'X-extent
21 \override Arpeggio #'arpeggio-direction = #UP
24 \revert Arpeggio #'stencil
25 \revert Arpeggio #'X-extent
26 \override Arpeggio #'arpeggio-direction = #DOWN
29 \revert Arpeggio #'stencil
30 \revert Arpeggio #'X-extent
31 \revert Arpeggio #'arpeggio-direction
32 \revert Arpeggio #'dash-definition
35 \revert Arpeggio #'X-extent
36 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
38 arpeggioParenthesis = {
39 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
40 \override Arpeggio #'X-extent = #ly:grob::stencil-width
41 \revert Arpeggio #'dash-definition
43 arpeggioParenthesisDashed = {
44 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
45 \override Arpeggio #'X-extent = #ly:grob::stencil-width
46 \override Arpeggio #'dash-definition = #'((0 1 0.4 0.75))
52 autoBeamOn = \set autoBeaming = ##t
53 autoBeamOff = \set autoBeaming = ##f
59 \override BalloonTextItem #'extra-spacing-width = #'(0 . 0)
60 \override BalloonTextItem #'extra-spacing-height = #'(-inf.0 . +inf.0)
63 \override BalloonTextItem #'extra-spacing-width = #'(+inf.0 . -inf.0)
64 \override BalloonTextItem #'extra-spacing-height = #'(0 . 0)
70 bassFigureExtendersOn = {
71 \set useBassFigureExtenders = ##t
72 \set Staff.useBassFigureExtenders = ##t
74 bassFigureExtendersOff = {
75 \set useBassFigureExtenders = ##f
76 \set Staff.useBassFigureExtenders = ##f
78 bassFigureStaffAlignmentDown =
79 \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
80 bassFigureStaffAlignmentUp =
81 \override Staff.BassFigureAlignmentPositioning #'direction = #UP
82 bassFigureStaffAlignmentNeutral =
83 \revert Staff.BassFigureAlignmentPositioning #'direction
88 cadenzaOn = \set Timing.timing = ##f
90 \set Timing.timing = ##t
91 \set Timing.measurePosition = #ZERO-MOMENT
98 \set chordRootNamer = #(chord-name->italian-markup #t)
99 \set chordPrefixSpacer = #0.4
102 \set chordRootNamer = #(chord-name->german-markup #t)
103 \set chordNoteNamer = #note-name->german-markup
106 \set chordRootNamer = #(chord-name->german-markup #f)
107 \set chordNoteNamer = #note-name->german-markup
110 \set chordRootNamer = #(chord-name->italian-markup #f)
111 \set chordPrefixSpacer = #0.4
115 %% compressFullBarRests
117 compressFullBarRests = \set Score.skipBars = ##t
118 expandFullBarRests = \set Score.skipBars = ##f
123 dotsUp = \override Dots #'direction = #UP
124 dotsDown = \override Dots #'direction = #DOWN
125 dotsNeutral = \revert Dots #'direction
131 \override DynamicText #'direction = #UP
132 \override DynamicLineSpanner #'direction = #UP
135 \override DynamicText #'direction = #DOWN
136 \override DynamicLineSpanner #'direction = #DOWN
139 \revert DynamicText #'direction
140 \revert DynamicLineSpanner #'direction
147 \override NoteHead #'stencil = #note-head::brew-ez-stencil
148 \override NoteHead #'font-size = #-8
149 \override NoteHead #'font-family = #'sans
150 \override NoteHead #'font-series = #'bold
153 \revert NoteHead #'stencil
154 \revert NoteHead #'font-size
155 \revert NoteHead #'font-family
156 \revert NoteHead #'font-series
162 %% End the incipit and print a ``normal line start''.
163 endincipit = \context Staff {
164 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
165 \once \override Staff.Clef #'full-size-change = ##t
166 \once \override Staff.Clef #'non-default = ##t
174 #(make-music 'MultiMeasureTextEvent
176 ; Set the 'text based on the 'direction
177 (cons 'text (lambda (grob)
178 (if (eq? (ly:grob-property grob 'direction) DOWN)
179 (markup #:musicglyph "scripts.dfermata")
180 (markup #:musicglyph "scripts.ufermata"))))
181 (cons 'outside-staff-priority 40)))
186 teeny = \set fontSize = #-3
187 tiny = \set fontSize = #-2
188 small = \set fontSize = #-1
189 normalsize = \set fontSize = #0
190 large = \set fontSize = #1
191 huge = \set fontSize = #2
196 glissando = #(make-music 'GlissandoEvent)
201 harmonicsOn = \override NoteHead #'style = #'harmonic
202 harmonicsOff = \revert NoteHead #'style
208 % hide notes, accidentals, etc.
209 \override Dots #'transparent = ##t
210 \override NoteHead #'transparent = ##t
211 \override NoteHead #'no-ledgers = ##t
212 \override Stem #'transparent = ##t
213 \override Beam #'transparent = ##t
214 \override Accidental #'transparent = ##t
217 \revert Accidental #'transparent
218 \revert Beam #'transparent
219 \revert Stem #'transparent
220 \revert NoteHead #'transparent
221 \revert NoteHead #'no-ledgers
222 \revert Dots #'transparent
229 \set squashedPosition = #0
230 \override NoteHead #'style = #'slash
231 \override Accidental #'stencil = ##f
234 \unset squashedPosition
235 \revert NoteHead #'style
236 \revert Accidental #'stencil
242 mergeDifferentlyDottedOn =
243 \override Staff.NoteCollision #'merge-differently-dotted = ##t
244 mergeDifferentlyDottedOff =
245 \revert Staff.NoteCollision #'merge-differently-dotted
246 mergeDifferentlyHeadedOn =
247 \override Staff.NoteCollision #'merge-differently-headed = ##t
248 mergeDifferentlyHeadedOff =
249 \revert Staff.NoteCollision #'merge-differently-headed
252 %% numeric time signature
254 numericTimeSignature = \override Staff.TimeSignature #'style = #'()
255 defaultTimeSignature = \revert Staff.TimeSignature #'style
261 #(define-music-function (parser location) ()
262 (override-head-style 'NoteHead 'do))
264 #(define-music-function (parser location) ()
265 (revert-head-style 'NoteHead))
267 #(define-music-function (parser location note) (ly:music?)
268 (style-note-heads 'NoteHead 'do note))
274 phrasingSlurUp = \override PhrasingSlur #'direction = #UP
275 phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN
276 phrasingSlurNeutral = \revert PhrasingSlur #'direction
278 % dash-patterns (make-simple-dash-definition defined at top of file)
279 phrasingSlurDashPattern =
280 #(define-music-function (parser location dash-fraction dash-period)
283 \override PhrasingSlur #'dash-definition =
284 $(make-simple-dash-definition dash-fraction dash-period)
287 \override PhrasingSlur #'dash-definition = #'((0 1 0.4 0.75))
289 \override PhrasingSlur #'dash-definition = #'((0 1 0.1 0.75))
290 phrasingSlurHalfDashed =
291 \override PhrasingSlur #'dash-definition = #'((0 0.5 0.4 0.75)
293 phrasingSlurHalfSolid =
294 \override PhrasingSlur #'dash-definition = #'((0 0.5 1 1)
297 \revert PhrasingSlur #'dash-definition
303 #(define-music-function (parser location) ()
304 (ly:set-option 'point-and-click #t)
305 (make-music 'SequentialMusic 'void #t))
307 #(define-music-function (parser location) ()
308 (ly:set-option 'point-and-click #f)
309 (make-music 'SequentialMusic 'void #t))
312 %% predefined fretboards
314 predefinedFretboardsOff =
315 \set FretBoards.predefinedDiagramTable = ##f
316 predefinedFretboardsOn =
317 \set FretBoards.predefinedDiagramTable = #fretboard-table
322 aikenHeads = \set shapeNoteStyles = #'#(do re mi fa #f la ti)
323 sacredHarpHeads = \set shapeNoteStyles = #'#(fa #f la fa #f la mi)
328 shiftOn = \override NoteColumn #'horizontal-shift = #1
329 shiftOnn = \override NoteColumn #'horizontal-shift = #2
330 shiftOnnn = \override NoteColumn #'horizontal-shift = #3
331 shiftOff = \revert NoteColumn #'horizontal-shift
337 slurUp = \override Slur #'direction = #UP
338 slurDown = \override Slur #'direction = #DOWN
339 slurNeutral = \revert Slur #'direction
341 % dash-patterns (make-simple-dash-definition defined at top of file)
343 #(define-music-function (parser location dash-fraction dash-period)
346 \override Slur #'dash-definition =
347 $(make-simple-dash-definition dash-fraction dash-period)
349 slurDashed = \override Slur #'dash-definition = #'((0 1 0.4 0.75))
350 slurDotted = \override Slur #'dash-definition = #'((0 1 0.1 0.75))
351 slurHalfDashed = \override Slur #'dash-definition = #'((0 0.5 0.4 0.75)
353 slurHalfSolid = \override Slur #'dash-definition = #'((0 0.5 1 1)
355 slurSolid = \revert Slur #'dash-definition
360 showStaffSwitch = \set followVoice = ##t
361 hideStaffSwitch = \set followVoice = ##f
366 stemUp = \override Stem #'direction = #UP
367 stemDown = \override Stem #'direction = #DOWN
368 stemNeutral = \revert Stem #'direction
373 % switch to full notation
376 \revert TabStaff.TimeSignature #'stencil
377 % stems (the half note gets a double stem)
378 \override TabVoice.Stem #'stencil = #tabvoice::draw-double-stem-for-half-notes
380 \revert TabVoice.Beam #'stencil
381 \revert TabVoice.Dots #'stencil
382 \revert TabVoice.Tie #'stencil
383 \revert TabVoice.Tie #'after-line-breaking
384 \revert TabVoice.RepeatTie #'stencil
385 \revert TabVoice.RepeatTie #'after-line-breaking
386 \revert TabVoice.LaissezVibrerTie #'stencil
387 \revert TabVoice.Slur #'stencil
388 \revert PhrasingSlur #'stencil
390 \revert TabVoice.TupletBracket #'stencil
391 \revert TabVoice.TupletNumber #'stencil
393 \revert DynamicText #'transparent
394 \revert DynamicTextSpanner #'stencil
395 \revert TabVoice.DynamicTextSpanner #'stencil
396 \revert TabVoice.Hairpin #'transparent
398 \revert TabVoice.Rest #'stencil
399 \revert TabVoice.MultiMeasureRest #'stencil
401 \revert TabVoice.Script #'stencil
402 \revert TabVoice.TextScript #'stencil
403 \revert TabStaff.Arpeggio #'stencil
406 %tie/repeat tie behaviour
407 hideSplitTiedTabNotes = {
408 \override TabVoice.TabNoteHead #'(details tied-properties break-visibility) = #all-invisible
409 \override TabVoice.TabNoteHead #'(details tied-properties parenthesize) = ##f
410 \override TabVoice.TabNoteHead #'(details repeat-tied-properties note-head-visible) = ##f
411 \override TabVoice.TabNoteHead #'(details repeat-tied-properties parenthesize) = ##f
414 showSplitTiedTabNotes = {
415 \override TabVoice.TabNoteHead #'(details tied-properties break-visibility) = #begin-of-line-visible
416 \override TabVoice.TabNoteHead #'(details tied-properties parenthesize) = ##t
417 \override TabVoice.TabNoteHead #'(details repeat-tied-properties note-head-visible) = ##t
418 \override TabVoice.TabNoteHead #'(details repeat-tied-properties parenthesize) = ##t
424 \override TextScript #'extra-spacing-width = #'(0 . 0)
425 \override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0)
428 \override TextScript #'extra-spacing-width = #'(+inf.0 . -inf.0)
429 \override TextScript #'extra-spacing-height = #'(0 . 0)
435 textSpannerUp = \override TextSpanner #'direction = #UP
436 textSpannerDown = \override TextSpanner #'direction = #DOWN
437 textSpannerNeutral = \revert TextSpanner #'direction
443 tieUp = \override Tie #'direction = #UP
444 tieDown = \override Tie #'direction = #DOWN
445 tieNeutral = \revert Tie #'direction
447 % dash-patterns (make-simple-dash-definition defined at top of file)
449 #(define-music-function (parser location dash-fraction dash-period)
452 \override Tie #'dash-definition =
453 $(make-simple-dash-definition dash-fraction dash-period)
455 tieDashed = \override Tie #'dash-definition = #'((0 1 0.4 0.75))
456 tieDotted = \override Tie #'dash-definition = #'((0 1 0.1 0.75))
457 tieHalfDashed = \override Tie #'dash-definition = #'((0 0.5 0.4 0.75)
459 tieHalfSolid = \override Tie #'dash-definition = #'((0 0.5 1 1)
461 tieSolid = \revert Tie #'dash-definition
466 tupletUp = \override TupletBracket #'direction = #UP
467 tupletDown = \override TupletBracket #'direction = #DOWN
468 tupletNeutral = \revert TupletBracket #'direction
473 % dynamic ly:dir? text script, articulation script ly:dir?
474 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
475 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
476 voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice)
477 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
478 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
484 \override NoteHead #'style = #'diamond
485 \override NoteHead #'color = #red
486 \override Stem #'color = #red
487 \override Beam #'color = #red
490 \override NoteHead #'style = #'triangle
491 \override NoteHead #'color = #blue
492 \override Stem #'color = #blue
493 \override Beam #'color = #blue
496 \override NoteHead #'style = #'xcircle
497 \override NoteHead #'color = #green
498 \override Stem #'color = #green
499 \override Beam #'color = #green
502 \override NoteHead #'style = #'cross
503 \override NoteHead #'color = #magenta
504 \override Stem #'color = #magenta
505 \override Beam #'color = #magenta
507 voiceNeutralStyle = {
508 \revert NoteHead #'style
509 \revert NoteHead #'color
518 #(define-music-function (parser location) ()
519 (override-head-style '(TabNoteHead NoteHead) 'cross))
521 #(define-music-function (parser location) ()
522 (revert-head-style '(TabNoteHead NoteHead)))
524 #(define-music-function (parser location note) (ly:music?)
525 (style-note-heads '(TabNoteHead NoteHead) 'cross note))
528 %% dead notes (these need to come after "x notes")
530 % Define aliases of cross-head notes for specific purposes
531 deadNotesOn = \xNotesOn
532 deadNotesOff = \xNotesOff