]> git.donarmstrong.com Git - lilypond.git/commitdiff
property-init.ly: Organize, cleanup.
authorMark Polesky <markpolesky@yahoo.com>
Thu, 20 Aug 2009 15:54:53 +0000 (08:54 -0700)
committerMark Polesky <markpolesky@yahoo.com>
Thu, 20 Aug 2009 15:57:22 +0000 (08:57 -0700)
ly/property-init.ly

index 49ff7dc560b0e46d7a4c650dcaa871f3241b83e0..1ab7d5e5d9d86db0fbe2728196af2ea6d0061f1c 100644 (file)
 
 \version "2.12.0"
 
-stemUp = \override Stem #'direction = #UP
-stemDown = \override Stem #'direction = #DOWN
-stemNeutral = \revert Stem #'direction
-
-slurUp = \override Slur #'direction = #UP
-slurDown = \override Slur #'direction = #DOWN
-slurNeutral = \revert Slur #'direction
-
+%% for dashed slurs, phrasing slurs, and ties
 #(define (make-simple-dash-definition dash-fraction dash-period)
     (list (list 0 1 dash-fraction dash-period)))
 
-slurDashed = {
-  \override Slur #'dash-definition =  #'((0 1 0.4 0.75))
-}
-slurDashPattern =
-#(define-music-function (parser location dash-fraction dash-period)
-  (number? number?)
-  #{
-     \override Slur #'dash-definition =
-       $(make-simple-dash-definition dash-fraction dash-period)
-  #})
-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
-}
 
+%% arpeggios
 
-phrasingSlurUp = \override PhrasingSlur #'direction = #UP
-phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN
-phrasingSlurNeutral = \revert PhrasingSlur #'direction
+% For drawing vertical chord brackets with \arpeggio
+% This is a shorthand for the value of the print-function property
+% of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
+% cross-staff brackets are desired.
 
-phrasingSlurDashed = {
-  \override PhrasingSlur #'dash-definition =  #'((0 1 0.4 0.75))
+arpeggio = #(make-music 'ArpeggioEvent)
+arpeggioArrowUp = {
+  \revert Arpeggio  #'stencil
+  \revert Arpeggio #'X-extent
+  \override Arpeggio  #'arpeggio-direction = #UP
 }
-phrasingSlurDashPattern =
-#(define-music-function (parser location dash-fraction dash-period)
-  (number? number?)
-  #{
-     \override PhrasingSlur #'dash-definition =
-       $(make-simple-dash-definition dash-fraction dash-period)
-  #})
-phrasingSlurDotted = {
-  \override PhrasingSlur #'dash-definition =  #'((0 1 0.1 0.75))
+arpeggioArrowDown = {
+  \revert Arpeggio #'stencil
+  \revert Arpeggio #'X-extent
+  \override Arpeggio  #'arpeggio-direction = #DOWN
 }
-phrasingSlurHalfDashed = {
-  \override PhrasingSlur #'dash-definition =  #'((0 0.5 0.4 0.75)
-                                                 (0.5 1 1 1))
+arpeggioNormal = {
+  \revert Arpeggio #'stencil
+  \revert Arpeggio #'X-extent
+  \revert Arpeggio #'arpeggio-direction
+  \revert Arpeggio #'dash-definition
 }
-phrasingSlurHalfSolid = {
-  \override PhrasingSlur #'dash-definition =  #'((0 0.5 1 1)
-                                                 (0.5 1 0.4 0.75))
+arpeggioBracket = {
+  \revert Arpeggio #'X-extent
+  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
 }
-phrasingSlurSolid = {
-  \revert PhrasingSlur #'dash-definition
+arpeggioParenthesis = {
+  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
+  \override Arpeggio #'X-extent = #ly:grob::stencil-width
+  \revert Arpeggio #'dash-definition
+}
+arpeggioParenthesisDashed = {
+  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
+  \override Arpeggio #'X-extent = #ly:grob::stencil-width
+  \override Arpeggio #'dash-definition = #'((0 1 0.4 0.75))
 }
 
-mergeDifferentlyDottedOn = {
-  \override Staff.NoteCollision #'merge-differently-dotted = ##t
+
+%% auto beaming
+
+autoBeamOn  = \set autoBeaming = ##t
+autoBeamOff = \set autoBeaming = ##f
+
+
+%% balloon length
+
+balloonLengthOn = {
+  \override BalloonTextItem #'extra-spacing-width = #'(0 . 0)
+  \override BalloonTextItem #'extra-spacing-height = #'(-inf.0 . +inf.0)
 }
-mergeDifferentlyDottedOff = {
-  \revert Staff.NoteCollision #'merge-differently-dotted
+balloonLengthOff = {
+  \override BalloonTextItem #'extra-spacing-width = #'(+inf.0 . -inf.0)
+  \override BalloonTextItem #'extra-spacing-height = #'(0 . 0)
 }
 
-mergeDifferentlyHeadedOn = {
-  \override Staff.NoteCollision #'merge-differently-headed = ##t
+
+%% bass figures
+
+bassFigureExtendersOn = {
+  \set useBassFigureExtenders = ##t
+  \set Staff.useBassFigureExtenders = ##t
 }
-mergeDifferentlyHeadedOff = {
-  \revert Staff.NoteCollision #'merge-differently-headed
+bassFigureExtendersOff = {
+  \set useBassFigureExtenders = ##f
+  \set Staff.useBassFigureExtenders = ##f
 }
+bassFigureStaffAlignmentDown =
+  \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
+bassFigureStaffAlignmentUp =
+  \override Staff.BassFigureAlignmentPositioning #'direction = #UP
+bassFigureStaffAlignmentNeutral =
+  \revert Staff.BassFigureAlignmentPositioning #'direction
 
-shiftOn = \override NoteColumn #'horizontal-shift = #1
-shiftOnn = \override NoteColumn #'horizontal-shift = #2
-shiftOnnn = \override NoteColumn #'horizontal-shift = #3
-shiftOff = \revert NoteColumn #'horizontal-shift
 
-tieUp = \override Tie #'direction = #UP
-tieDown = \override Tie #'direction = #DOWN
-tieNeutral = \revert Tie #'direction
+%% cadenzas
 
-tieDashed = {
-  \override Tie #'dash-definition = #'((0 1 0.4 0.75))
+cadenzaOn  = \set Timing.timing = ##f
+cadenzaOff = {
+  \set Timing.timing = ##t
+  \set Timing.measurePosition = #ZERO-MOMENT
 }
-tieDashPattern =
-#(define-music-function (parser location dash-fraction dash-period)
-  (number? number?)
-  #{
-     \override Tie #'dash-definition =
-       $(make-simple-dash-definition dash-fraction dash-period)
-  #})
-tieDotted = {
-  \override Tie #'dash-definition = #'((0 1 0.1 0.75))
+
+
+%% chord names
+
+frenchChords = {
+  \set chordRootNamer = #(chord-name->italian-markup #t)
+  \set chordPrefixSpacer = #0.4
 }
-tieHalfDashed = {
-  \override Tie #'dash-definition =  #'((0 0.5 0.4 0.75)
-                                        (0.5 1 1 1))
+germanChords = {
+  \set chordRootNamer = #(chord-name->german-markup #t)
+  \set chordNoteNamer = #note-name->german-markup
 }
-tieHalfSolid = {
-  \override Tie #'dash-definition =  #'((0 0.5 1 1)
-                                        (0.5 1 0.4 0.75))
+semiGermanChords = {
+  \set chordRootNamer = #(chord-name->german-markup #f)
+  \set chordNoteNamer = #note-name->german-markup
 }
-tieSolid = {
-  \revert Tie #'dash-definition
+italianChords = {
+  \set chordRootNamer = #(chord-name->italian-markup #f)
+  \set chordPrefixSpacer = #0.4
 }
 
-easyHeadsOn = {
-  \override NoteHead #'stencil = #note-head::brew-ez-stencil
-  \override NoteHead #'font-size = #-8
-  \override NoteHead #'font-family = #'sans
-  \override NoteHead #'font-series = #'bold
-}
 
-easyHeadsOff = {
-  \revert NoteHead #'stencil
-  \revert NoteHead #'font-size
-  \revert NoteHead #'font-family
-  \revert NoteHead #'font-series
-}
+%% compressFullBarRests
 
-aikenHeads = \set shapeNoteStyles = #'#(do re mi fa #f la ti)
+compressFullBarRests = \set Score.skipBars = ##t
+expandFullBarRests   = \set Score.skipBars = ##f
 
-sacredHarpHeads = \set shapeNoteStyles = #'#(fa #f la fa #f la mi)
+
+%% dots
+
+dotsUp      = \override Dots #'direction = #UP
+dotsDown    = \override Dots #'direction = #DOWN
+dotsNeutral = \revert Dots #'direction
+
+
+%% dynamics
 
 dynamicUp = {
   \override DynamicText #'direction = #UP
   \override DynamicLineSpanner #'direction = #UP
 }
-
 dynamicDown = {
   \override DynamicText #'direction = #DOWN
   \override DynamicLineSpanner #'direction = #DOWN
 }
-
 dynamicNeutral = {
   \revert DynamicText #'direction
   \revert DynamicLineSpanner #'direction
 }
 
 
-dotsUp = \override Dots #'direction = #UP
-dotsDown = \override Dots #'direction = #DOWN
-dotsNeutral = \revert Dots #'direction
-
-tupletUp = \override TupletBracket #'direction = #UP
-tupletDown = \override TupletBracket #'direction = #DOWN
-tupletNeutral = \revert TupletBracket #'direction
-
-cadenzaOn = \set Timing.timing = ##f
-cadenzaOff = {
-  \set Timing.timing = ##t
-  \set Timing.measurePosition = #ZERO-MOMENT
-}
-
-% dynamic ly:dir?  text script, articulation script ly:dir?
-oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
-voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
-voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
-voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice)
-voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
-
-voiceOneStyle = {
-  \override NoteHead #'style = #'diamond
-  \override NoteHead #'color = #red
-  \override Stem #'color = #red
-  \override Beam #'color = #red
-}
-voiceTwoStyle = {
-  \override NoteHead #'style = #'triangle
-  \override NoteHead #'color = #blue
-  \override Stem #'color = #blue
-  \override Beam #'color = #blue
-}
-voiceThreeStyle = {
-  \override NoteHead #'style = #'xcircle
-  \override NoteHead #'color = #green
-  \override Stem #'color = #green
-  \override Beam #'color = #green
-}
-voiceFourStyle = {
-  \override NoteHead #'style = #'cross
-  \override NoteHead #'color = #magenta
-  \override Stem #'color = #magenta
-  \override Beam #'color = #magenta
-}
-voiceNeutralStyle = {
-  \revert NoteHead #'style
-  \revert NoteHead #'color
-  \revert Stem #'color
-  \revert Beam #'color
-}
-
-teeny = {
-  \set fontSize = #-3
-}
-
-tiny = {
-  \set fontSize = #-2
-}
+%% easy heads
 
-small = {
-  \set fontSize = #-1
+easyHeadsOn = {
+  \override NoteHead #'stencil = #note-head::brew-ez-stencil
+  \override NoteHead #'font-size = #-8
+  \override NoteHead #'font-family = #'sans
+  \override NoteHead #'font-series = #'bold
 }
-
-normalsize = {
-  \set fontSize = #0
+easyHeadsOff = {
+  \revert NoteHead #'stencil
+  \revert NoteHead #'font-size
+  \revert NoteHead #'font-family
+  \revert NoteHead #'font-series
 }
 
-large = {
-  \set fontSize = #1
-}
 
-huge = {
-  \set fontSize = #2
-}
+%% endincipit
 
 %% End the incipit and print a ``normal line start''.
 endincipit = \context Staff {
@@ -234,99 +167,40 @@ endincipit = \context Staff {
   \bar ""
 }
 
-autoBeamOff = \set autoBeaming = ##f
-autoBeamOn = \set autoBeaming = ##t
 
-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)
-}
-
-balloonLengthOn = {
-  \override BalloonTextItem #'extra-spacing-width = #'(0 . 0)
-  \override BalloonTextItem #'extra-spacing-height = #'(-inf.0 . +inf.0)
-}
-
-balloonLengthOff = {
-  \override BalloonTextItem #'extra-spacing-width = #'(+inf.0 . -inf.0)
-  \override BalloonTextItem #'extra-spacing-height = #'(0 . 0)
-}
+%% fermata markup
 
+fermataMarkup =
+#(make-music 'MultiMeasureTextEvent
+   ; Set the 'text based on the 'direction
+   'tweaks (list (cons 'text (lambda (grob)
+       (if (eq? (ly:grob-property grob 'direction) DOWN)
+          (markup #:musicglyph "scripts.dfermata")
+          (markup #:musicglyph "scripts.ufermata"))))))
 
-showStaffSwitch = \set followVoice = ##t
-hideStaffSwitch = \set followVoice = ##f
 
-expandFullBarRests = {
-  \set Score.skipBars = ##f
-}
+%% font sizes
 
-compressFullBarRests = {
-  \set Score.skipBars = ##t
-}
+teeny      = \set fontSize = #-3
+tiny       = \set fontSize = #-2
+small      = \set fontSize = #-1
+normalsize = \set fontSize = #0
+large      = \set fontSize = #1
+huge       = \set fontSize = #2
 
-numericTimeSignature = {
-  \override Staff.TimeSignature #'style = #'()
-}
 
-defaultTimeSignature = {
-  \revert Staff.TimeSignature #'style
-}
+%% glissando
 
+glissando = #(make-music 'GlissandoEvent)
 
-% For drawing vertical chord brackets with \arpeggio
-% This is a shorthand for the value of the print-function property
-% of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
-% cross-staff brackets are desired.
 
-arpeggio = #(make-music 'ArpeggioEvent)
+%% harmonics
 
-arpeggioArrowUp = {
-  \revert Arpeggio  #'stencil
-  \revert Arpeggio #'X-extent
-  \override Arpeggio  #'arpeggio-direction = #UP
-}
-arpeggioArrowDown = {
-  \revert Arpeggio #'stencil
-  \revert Arpeggio #'X-extent
-  \override Arpeggio  #'arpeggio-direction = #DOWN
-}
-arpeggioNormal = {
-  \revert Arpeggio #'stencil
-  \revert Arpeggio #'X-extent
-  \revert Arpeggio #'arpeggio-direction
-  \revert Arpeggio #'dash-definition
-}
-arpeggioBracket = {
-  \revert Arpeggio #'X-extent
-  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
-}
-arpeggioParenthesis = {
-  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
-  \override Arpeggio #'X-extent = #ly:grob::stencil-width
-  \revert Arpeggio #'dash-definition
-}
-arpeggioParenthesisDashed = {
-  \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
-  \override Arpeggio #'X-extent = #ly:grob::stencil-width
-  \override Arpeggio #'dash-definition = #'((0 1 0.4 0.75))
-}
+harmonicsOn  = \override NoteHead #'style = #'harmonic
+harmonicsOff = \revert NoteHead #'style
 
 
-
-glissando = #(make-music 'GlissandoEvent)
-
-fermataMarkup =
-#(make-music 'MultiMeasureTextEvent
-   ; Set the 'text based on the 'direction
-   'tweaks (list (cons 'text (lambda (grob)
-       (if (eq? (ly:grob-property grob 'direction) DOWN)
-           (markup #:musicglyph "scripts.dfermata")
-           (markup #:musicglyph "scripts.ufermata"))))))
+%% hideNotes
 
 hideNotes = {
   % hide notes, accidentals, etc.
@@ -337,8 +211,6 @@ hideNotes = {
   \override Beam #'transparent = ##t
   \override Accidental #'transparent = ##t
 }
-
-
 unHideNotes = {
   \revert Accidental #'transparent
   \revert Beam #'transparent
@@ -348,113 +220,153 @@ unHideNotes = {
   \revert Dots #'transparent
 }
 
-germanChords = {
-  \set chordRootNamer = #(chord-name->german-markup #t)
-  \set chordNoteNamer = #note-name->german-markup
-}
-semiGermanChords = {
-  \set chordRootNamer = #(chord-name->german-markup #f)
-  \set chordNoteNamer = #note-name->german-markup
-}
-
-frenchChords = {
-  \set chordRootNamer = #(chord-name->italian-markup #t)
-  \set chordPrefixSpacer = #0.4
-}
-
-italianChords = {
-  \set chordRootNamer = #(chord-name->italian-markup #f)
-  \set chordPrefixSpacer = #0.4
-}
-
-harmonicsOn = \override NoteHead #'style = #'harmonic
 
-harmonicsOff = \revert NoteHead #'style
+%% improvisation
 
 improvisationOn = {
   \set squashedPosition = #0
   \override NoteHead #'style = #'slash
   \override Accidental #'stencil = ##f
 }
-
 improvisationOff = {
   \unset squashedPosition
   \revert NoteHead #'style
   \revert Accidental #'stencil
 }
 
-textSpannerUp = \override TextSpanner #'direction = #UP
-textSpannerDown = \override TextSpanner #'direction = #DOWN
-textSpannerNeutral = \revert TextSpanner #'direction
-
-
-
-bassFigureExtendersOn = {
-  \set useBassFigureExtenders = ##t
-  \set Staff.useBassFigureExtenders = ##t
-}
-
-bassFigureExtendersOff = {
-  \set useBassFigureExtenders = ##f
-  \set Staff.useBassFigureExtenders = ##f
-}
 
-bassFigureStaffAlignmentDown = {
-  \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
-}
+%% merging
 
-bassFigureStaffAlignmentUp = {
-  \override Staff.BassFigureAlignmentPositioning #'direction = #UP
-}
+mergeDifferentlyDottedOn =
+  \override Staff.NoteCollision #'merge-differently-dotted = ##t
+mergeDifferentlyDottedOff =
+  \revert Staff.NoteCollision #'merge-differently-dotted
+mergeDifferentlyHeadedOn =
+  \override Staff.NoteCollision #'merge-differently-headed = ##t
+mergeDifferentlyHeadedOff =
+  \revert Staff.NoteCollision #'merge-differently-headed
 
-bassFigureStaffAlignmentNeutral = {
-  \revert Staff.BassFigureAlignmentPositioning #'direction
-}
 
-predefinedFretboardsOff = {
-  \set FretBoards.predefinedDiagramTable = ##f
-}
+%% numeric time signature
 
-predefinedFretboardsOn = {
-  \set FretBoards.predefinedDiagramTable = #fretboard-table
-}
+numericTimeSignature = \override Staff.TimeSignature #'style = #'()
+defaultTimeSignature = \revert Staff.TimeSignature #'style
 
-pointAndClickOff = #(define-music-function (parser location) ()
-                      (ly:set-option 'point-and-click #f)
-                      (make-music 'SequentialMusic 'void #t))
 
-pointAndClickOn = #(define-music-function (parser location) ()
-                      (ly:set-option 'point-and-click #t)
-                      (make-music 'SequentialMusic 'void #t))
+%% 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))
 
-xNotesOn =
-#(define-music-function (parser location) ()
-   (override-head-style '(TabNoteHead NoteHead) 'cross))
 
-xNotesOff =
+%% 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) ()
-   (revert-head-style '(TabNoteHead NoteHead)))
+   (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))
 
-xNote =
-#(define-music-function (parser location note) (ly:music?)
-   (style-note-heads '(TabNoteHead NoteHead) 'cross note))
 
-% Define aliases of cross-head notes for specific purposes
-deadNotesOn = \xNotesOn
-deadNotesOff = \xNotesOff
-deadNote = #xNote
+%% 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
@@ -487,3 +399,118 @@ tabFullNotation = {
   \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)
+}
+
+
+%% text spanners
+
+textSpannerUp      = \override TextSpanner #'direction = #UP
+textSpannerDown    = \override TextSpanner #'direction = #DOWN
+textSpannerNeutral = \revert TextSpanner #'direction
+
+
+%% ties
+
+% directions
+tieUp      = \override Tie #'direction = #UP
+tieDown    = \override Tie #'direction = #DOWN
+tieNeutral = \revert Tie #'direction
+
+% dash-patterns (make-simple-dash-definition defined at top of file)
+tieDashPattern =
+#(define-music-function (parser location dash-fraction dash-period)
+  (number? number?)
+  #{
+     \override Tie #'dash-definition =
+       $(make-simple-dash-definition dash-fraction dash-period)
+  #})
+tieDashed     = \override Tie #'dash-definition = #'((0 1 0.4 0.75))
+tieDotted     = \override Tie #'dash-definition = #'((0 1 0.1 0.75))
+tieHalfDashed = \override Tie #'dash-definition = #'((0 0.5 0.4 0.75)
+                                                    (0.5 1 1 1))
+tieHalfSolid  = \override Tie #'dash-definition = #'((0 0.5 1 1)
+                                                    (0.5 1 0.4 0.75))
+tieSolid      = \revert Tie #'dash-definition
+
+
+%% tuplets
+
+tupletUp      = \override TupletBracket #'direction = #UP
+tupletDown    = \override TupletBracket #'direction = #DOWN
+tupletNeutral = \revert TupletBracket #'direction
+
+
+%% voice properties
+
+% dynamic ly:dir?  text script, articulation script ly:dir?
+voiceOne   = #(context-spec-music (make-voice-props-set 0)  'Voice)
+voiceTwo   = #(context-spec-music (make-voice-props-set 1)  'Voice)
+voiceThree = #(context-spec-music (make-voice-props-set 2)  'Voice)
+voiceFour  = #(context-spec-music (make-voice-props-set 3)  'Voice)
+oneVoice   = #(context-spec-music (make-voice-props-revert) 'Voice)
+
+
+%% voice styles
+
+voiceOneStyle = {
+  \override NoteHead #'style = #'diamond
+  \override NoteHead #'color = #red
+  \override Stem #'color = #red
+  \override Beam #'color = #red
+}
+voiceTwoStyle = {
+  \override NoteHead #'style = #'triangle
+  \override NoteHead #'color = #blue
+  \override Stem #'color = #blue
+  \override Beam #'color = #blue
+}
+voiceThreeStyle = {
+  \override NoteHead #'style = #'xcircle
+  \override NoteHead #'color = #green
+  \override Stem #'color = #green
+  \override Beam #'color = #green
+}
+voiceFourStyle = {
+  \override NoteHead #'style = #'cross
+  \override NoteHead #'color = #magenta
+  \override Stem #'color = #magenta
+  \override Beam #'color = #magenta
+}
+voiceNeutralStyle = {
+  \revert NoteHead #'style
+  \revert NoteHead #'color
+  \revert Stem #'color
+  \revert Beam #'color
+}
+
+
+%% x notes
+
+xNotesOn =
+#(define-music-function (parser location) ()
+   (override-head-style '(TabNoteHead NoteHead) 'cross))
+xNotesOff =
+#(define-music-function (parser location) ()
+   (revert-head-style '(TabNoteHead NoteHead)))
+xNote =
+#(define-music-function (parser location note) (ly:music?)
+   (style-note-heads '(TabNoteHead NoteHead) 'cross note))
+
+
+%% dead notes (these need to come after "x notes")
+
+% Define aliases of cross-head notes for specific purposes
+deadNotesOn  = \xNotesOn
+deadNotesOff = \xNotesOff
+deadNote     = #xNote