+ \revert NoteHead.style
+ \revert TabNoteHead.style
+ \revert Accidental.stencil
+ \revert AccidentalCautionary.stencil
+}
+
+%% incipit
+
+incipit =
+#(define-music-function (incipit-music) (ly:music?)
+ (_i "Output @var{incipit-music} before the main staff as an indication of
+ its appearance in the original music.")
+ #{
+ \once \override Staff.InstrumentName.stencil =
+ #(lambda (grob)
+ (let* ((instrument-name (ly:grob-property grob 'long-text))
+ (align-x (ly:grob-property grob 'self-alignment-X 0))
+ (align-y (ly:grob-property grob 'self-alignment-Y 0)))
+ (set! (ly:grob-property grob 'long-text)
+ #{ \markup {
+ \score
+ {
+ \new MensuralStaff \with {
+ \override InstrumentName.self-alignment-X = #align-x
+ \override InstrumentName.self-alignment-Y = #align-y
+ instrumentName = #instrument-name
+ }
+ {
+ $incipit-music
+ }
+ \layout {
+ $(ly:grob-layout grob)
+ indent-incipit-default = 15\mm
+ line-width = #(primitive-eval
+ '(or (false-if-exception indent)
+ indent-incipit-default))
+ indent = #(primitive-eval
+ '(or (false-if-exception (- line-width incipit-width))
+ (* 0.5 line-width)))
+ ragged-right = ##f
+ ragged-last = ##f
+ system-count = 1
+ \context {
+ \Score
+ \remove "Default_bar_line_engraver"
+ }
+ }
+ }
+ }
+ #})
+ (set! (ly:grob-property grob 'self-alignment-Y) #f)
+ (set! (ly:grob-property grob 'self-alignment-X) RIGHT)
+ (system-start-text::print grob)))
+ #}
+)
+
+%% kievan
+kievanOn = {
+ \override NoteHead.style = #'kievan
+ \override Stem.X-offset = #stem::kievan-offset-callback
+ \override Stem.stencil = ##f
+ \override Flag.stencil = ##f
+ \override Rest.style = #'mensural
+ \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
+ \override Dots.style = #'kievan
+ \override Slur.stencil = ##f
+ \override Stem.length = #0.0
+ \override Beam.positions = #beam::get-kievan-positions
+ \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
+ \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
+}
+kievanOff = {
+ \revert NoteHead.style
+ \revert Stem.X-offset
+ \revert Stem.stencil
+ \revert Rest.style
+ \revert Accidental.glyph-name-alist
+ \revert Dots.style
+ \revert Slur.stencil
+ \revert Flag.stencil
+ \revert Stem.length
+ \revert Beam.positions
+ \revert Beam.quantized-positions
+ \revert NoteHead.duration-log
+}
+
+%% line and page breaking controls
+
+autoLineBreaksOff = {
+ \overrideProperty Score.NonMusicalPaperColumn.line-break-permission ##f
+ \override Score.NonMusicalPaperColumn.line-break-permission = ##f
+}
+autoLineBreaksOn = {
+ \overrideProperty Score.NonMusicalPaperColumn.line-break-permission #'allow
+ \override Score.NonMusicalPaperColumn.line-break-permission = #'allow
+}
+autoPageBreaksOff =
+ \override Score.NonMusicalPaperColumn.page-break-permission = ##f
+autoPageBreaksOn =
+ \override Score.NonMusicalPaperColumn.page-break-permission = #'allow
+autoBreaksOff = { \autoLineBreaksOff \autoPageBreaksOff }
+autoBreaksOn = { \autoLineBreaksOn \autoPageBreaksOn }
+
+
+%% merging
+
+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
+
+
+%% numeric time signature
+
+numericTimeSignature = \override Staff.TimeSignature.style = #'numbered
+defaultTimeSignature = \revert Staff.TimeSignature.style
+
+
+%% palm mutes
+
+palmMuteOn =
+#(define-music-function () ()
+ (_i "Set the default note head style to a triangle-shaped style.")
+ (context-spec-music
+ (override-head-style 'NoteHead 'do) 'Bottom))
+palmMuteOff = \defaultNoteHeads
+palmMute =
+#(define-music-function (note) (ly:music?)
+ (_i "Print @var{note} with a triangle-shaped note head.")
+ (style-note-heads 'NoteHead 'do note))
+
+%% part combiner
+
+partcombineForce =
+#(define-music-function (type) ((symbol?))
+ (_i "Override the part-combiner.")
+ (if type (propertySet 'partCombineForced type)
+ (propertyUnset 'partCombineForced)))
+
+partcombineApart = \partcombineForce #'apart
+partcombineChords = \partcombineForce #'chords
+partcombineUnisono = \partcombineForce #'unisono
+partcombineSoloI = \partcombineForce #'solo1
+partcombineSoloII = \partcombineForce #'solo2
+partcombineAutomatic = \partcombineForce \default
+
+
+%% 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 (dash-fraction dash-period)
+ (number? number?)
+ (_i "Set up a custom style of dash pattern for @var{dash-fraction} ratio of
+line to space repeated at @var{dash-period} interval for phrasing slurs.")
+ #{
+ \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-void-function () ()
+ (_i "Enable generation of code in final-format (e.g. pdf) files to reference the
+originating lilypond source statement;
+this is helpful when developing a score but generates bigger final-format files.")
+ (ly:set-option 'point-and-click #t))
+
+pointAndClickOff =
+#(define-void-function () ()
+ (_i "Suppress generating extra code in final-format (e.g. pdf) files to point
+back to the lilypond source statement.")
+ (ly:set-option 'point-and-click #f))
+
+pointAndClickTypes =
+#(define-void-function (types) (symbol-list-or-symbol?)
+ (_i "Set a type or list of types (such as @code{#'note-event}) for which point-and-click info is generated.")
+ (ly:set-option 'point-and-click types))
+
+%% predefined fretboards
+
+predefinedFretboardsOff =
+ \set predefinedDiagramTable = ##f
+predefinedFretboardsOn =
+ \set predefinedDiagramTable = #default-fret-table
+
+
+%% shape note heads
+
+aikenHeads = \set shapeNoteStyles = ##(do re miMirror fa sol la ti)
+aikenHeadsMinor = \set shapeNoteStyles = ##(la ti do re miMirror fa sol)
+funkHeads =
+ \set shapeNoteStyles = ##(doFunk reFunk miFunk faFunk solFunk laFunk tiFunk)
+funkHeadsMinor =
+ \set shapeNoteStyles = ##(laFunk tiFunk doFunk reFunk miFunk faFunk solFunk)
+sacredHarpHeads = \set shapeNoteStyles = ##(fa sol la fa sol la mi)
+sacredHarpHeadsMinor = \set shapeNoteStyles = ##(la mi fa sol la fa sol)
+southernHarmonyHeads =
+ \set shapeNoteStyles = ##(faThin sol laThin faThin sol laThin miThin)
+southernHarmonyHeadsMinor =
+ \set shapeNoteStyles = ##(laThin miThin faThin sol laThin faThin sol)
+walkerHeads =
+ \set shapeNoteStyles = ##(doWalker reWalker miWalker faWalker solFunk laWalker tiWalker)
+walkerHeadsMinor =
+ \set shapeNoteStyles = ##(laWalker tiWalker doWalker reWalker miWalker faWalker solFunk)
+
+
+%% shifts
+
+shiftOff = \override NoteColumn.horizontal-shift = #0
+shiftOn = \override NoteColumn.horizontal-shift = #1
+shiftOnn = \override NoteColumn.horizontal-shift = #2
+shiftOnnn = \override NoteColumn.horizontal-shift = #3
+
+
+%% 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 (dash-fraction dash-period)
+ (number? number?)
+ (_i "Set up a custom style of dash pattern for @var{dash-fraction}
+ratio of line to space repeated at @var{dash-period} interval for slurs.")
+ #{
+ \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