+
+%% palm mutes
+
+palmMuteOn =
+#(define-music-function (parser location) ()
+ (override-head-style 'NoteHead 'do))
+palmMuteOff =
+#(define-music-function (parser location) ()
+ (revert-head-style 'NoteHead))
+palmMute =
+#(define-music-function (parser location note) (ly:music?)
+ (style-note-heads 'NoteHead 'do note))
+
+
+%% phrasing slurs
+
+% directions
+phrasingSlurUp = \override PhrasingSlur #'direction = #UP
+phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN
+phrasingSlurNeutral = \revert PhrasingSlur #'direction
+
+% dash-patterns (make-simple-dash-definition defined at top of file)
+phrasingSlurDashPattern =
+#(define-music-function (parser location dash-fraction dash-period)
+ (number? number?)
+ #{
+ \override PhrasingSlur #'dash-definition =
+ $(make-simple-dash-definition dash-fraction dash-period)
+ #})
+phrasingSlurDashed =
+ \override PhrasingSlur #'dash-definition = #'((0 1 0.4 0.75))
+phrasingSlurDotted =
+ \override PhrasingSlur #'dash-definition = #'((0 1 0.1 0.75))
+phrasingSlurHalfDashed =
+ \override PhrasingSlur #'dash-definition = #'((0 0.5 0.4 0.75)
+ (0.5 1 1 1))
+phrasingSlurHalfSolid =
+ \override PhrasingSlur #'dash-definition = #'((0 0.5 1 1)
+ (0.5 1 0.4 0.75))
+phrasingSlurSolid =
+ \revert PhrasingSlur #'dash-definition
+
+
+%% point and click
+
+pointAndClickOn =
+#(define-music-function (parser location) ()
+ (ly:set-option 'point-and-click #t)
+ (make-music 'SequentialMusic 'void #t))
+pointAndClickOff =
+#(define-music-function (parser location) ()
+ (ly:set-option 'point-and-click #f)
+ (make-music 'SequentialMusic 'void #t))
+
+
+%% predefined fretboards
+
+predefinedFretboardsOff =
+ \set FretBoards.predefinedDiagramTable = ##f
+predefinedFretboardsOn =
+ \set FretBoards.predefinedDiagramTable = #fretboard-table
+
+
+%% shape note heads
+
+aikenHeads = \set shapeNoteStyles = #'#(do re mi fa #f la ti)
+sacredHarpHeads = \set shapeNoteStyles = #'#(fa #f la fa #f la mi)
+
+
+%% shifts
+
+shiftOn = \override NoteColumn #'horizontal-shift = #1
+shiftOnn = \override NoteColumn #'horizontal-shift = #2
+shiftOnnn = \override NoteColumn #'horizontal-shift = #3
+shiftOff = \revert NoteColumn #'horizontal-shift
+
+
+%% slurs
+
+% directions
+slurUp = \override Slur #'direction = #UP
+slurDown = \override Slur #'direction = #DOWN
+slurNeutral = \revert Slur #'direction
+
+% dash-patterns (make-simple-dash-definition defined at top of file)
+slurDashPattern =
+#(define-music-function (parser location dash-fraction dash-period)
+ (number? number?)
+ #{
+ \override Slur #'dash-definition =
+ $(make-simple-dash-definition dash-fraction dash-period)
+ #})
+slurDashed = \override Slur #'dash-definition = #'((0 1 0.4 0.75))
+slurDotted = \override Slur #'dash-definition = #'((0 1 0.1 0.75))
+slurHalfDashed = \override Slur #'dash-definition = #'((0 0.5 0.4 0.75)
+ (0.5 1 1 1))
+slurHalfSolid = \override Slur #'dash-definition = #'((0 0.5 1 1)
+ (0.5 1 0.4 0.75))
+slurSolid = \revert Slur #'dash-definition
+
+
+%% staff switches
+
+showStaffSwitch = \set followVoice = ##t
+hideStaffSwitch = \set followVoice = ##f
+
+
+%% stems
+
+stemUp = \override Stem #'direction = #UP
+stemDown = \override Stem #'direction = #DOWN
+stemNeutral = \revert Stem #'direction
+
+
+%% tabFullNotation
+
+tabFullNotation = {
+ % time signature
+ \revert TabStaff.TimeSignature #'stencil
+ % stems (the half note gets a double stem)
+ \override TabVoice.Stem #'stencil = #tabvoice::draw-double-stem-for-half-notes
+ % beams, dots
+ \revert TabVoice.Beam #'stencil
+ \revert TabVoice.Dots #'stencil
+ \revert TabVoice.Tie #'stencil
+ \revert TabVoice.Tie #'after-line-breaking
+ \revert TabVoice.RepeatTie #'stencil
+ \revert TabVoice.RepeatTie #'after-line-breaking
+ \revert TabVoice.LaissezVibrerTie #'stencil
+ \revert TabVoice.Slur #'stencil
+ \revert PhrasingSlur #'stencil
+ % tuplet stuff
+ \revert TabVoice.TupletBracket #'stencil
+ \revert TabVoice.TupletNumber #'stencil
+ % dynamic signs
+ \revert DynamicText #'transparent
+ \revert DynamicTextSpanner #'stencil
+ \revert TabVoice.DynamicTextSpanner #'stencil
+ \revert TabVoice.Hairpin #'transparent
+ % rests
+ \revert TabVoice.Rest #'stencil
+ \revert TabVoice.MultiMeasureRest #'stencil
+ % markups etc.
+ \revert TabVoice.Script #'stencil
+ \revert TabVoice.TextScript #'stencil
+ \revert TabStaff.Arpeggio #'stencil
+}
+
+
+%% text length
+
+textLengthOn = {
+ \override TextScript #'extra-spacing-width = #'(0 . 0)
+ \override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0)
+}
+textLengthOff = {
+ \override TextScript #'extra-spacing-width = #'(+inf.0 . -inf.0)
+ \override TextScript #'extra-spacing-height = #'(0 . 0)