X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fproperty-init.ly;h=2d50a6c6019569271214b6c1ca09e0acada8552d;hb=33fee1aae93af367e6d2f0a80bef3e1b38eda9eb;hp=8bbf124826813f855ef911f8f4fd9c6e81a7b9c6;hpb=2d54fb4a885cb851718a7bd5c800f01d6337895f;p=lilypond.git diff --git a/ly/property-init.ly b/ly/property-init.ly index 8bbf124826..2d50a6c601 100644 --- a/ly/property-init.ly +++ b/ly/property-init.ly @@ -1,22 +1,21 @@ % property-init.ly -\version "2.11.38" +\version "2.12.0" -stemUp = \override Stem #'direction = #UP -stemDown = \override Stem #'direction = #DOWN -stemNeutral= \revert Stem #'direction +stemUp = \override Stem #'direction = #UP +stemDown = \override Stem #'direction = #DOWN +stemNeutral = \revert Stem #'direction -slurUp = \override Slur #'direction = #UP -slurDown = \override Slur #'direction = #DOWN +slurUp = \override Slur #'direction = #UP +slurDown = \override Slur #'direction = #DOWN slurNeutral = \revert Slur #'direction -%% There's also dash, but setting dash period/length should be fixed. slurDashed = { \override Slur #'dash-period = #0.75 \override Slur #'dash-fraction = #0.4 } slurDotted = { - \override Slur #'dash-period = #0.75 + \override Slur #'dash-period = #0.75 \override Slur #'dash-fraction = #0.1 } slurSolid = { @@ -25,17 +24,44 @@ slurSolid = { } -phrasingSlurUp = \override PhrasingSlur #'direction = #UP -phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN +phrasingSlurUp = \override PhrasingSlur #'direction = #UP +phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN phrasingSlurNeutral = \revert PhrasingSlur #'direction -shiftOn = \override NoteColumn #'horizontal-shift = #1 -shiftOnn = \override NoteColumn #'horizontal-shift = #2 -shiftOnnn = \override NoteColumn #'horizontal-shift = #3 +phrasingSlurDashed = { + \override PhrasingSlur #'dash-period = #0.75 + \override PhrasingSlur #'dash-fraction = #0.4 +} +phrasingSlurDotted = { + \override PhrasingSlur #'dash-period = #0.75 + \override PhrasingSlur #'dash-fraction = #0.1 +} +phrasingSlurSolid = { + \revert PhrasingSlur #'dash-period + \revert PhrasingSlur #'dash-fraction +} + +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 +} + +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 +tieUp = \override Tie #'direction = #UP +tieDown = \override Tie #'direction = #DOWN tieNeutral = \revert Tie #'direction tieDashed = { @@ -52,7 +78,7 @@ tieSolid = { } easyHeadsOn = { - \override NoteHead #'stencil = #ly:note-head::brew-ez-stencil + \override NoteHead #'stencil = #ly:note-head::brew-ez-stencil \override NoteHead #'font-size = #-7 \override NoteHead #'font-family = #'sans \override NoteHead #'font-series = #'bold @@ -65,19 +91,18 @@ easyHeadsOff = { \revert NoteHead #'font-series } -aikenHeads = \set shapeNoteStyles = ##(do re mi fa #f la ti) +aikenHeads = \set shapeNoteStyles = #'#(do re mi fa #f la ti) -sacredHarpHeads = - \set shapeNoteStyles = ##(fa #f la fa #f la mi) +sacredHarpHeads = \set shapeNoteStyles = #'#(fa #f la fa #f la mi) dynamicUp = { - \override DynamicText #'direction = #UP - \override DynamicLineSpanner #'direction = #UP + \override DynamicText #'direction = #UP + \override DynamicLineSpanner #'direction = #UP } dynamicDown = { - \override DynamicText #'direction = #DOWN - \override DynamicLineSpanner #'direction = #DOWN + \override DynamicText #'direction = #DOWN + \override DynamicLineSpanner #'direction = #DOWN } dynamicNeutral = { @@ -86,12 +111,12 @@ dynamicNeutral = { } -dotsUp = \override Dots #'direction = #UP -dotsDown = \override Dots #'direction = #DOWN -dotsNeutral = \revert Dots #'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 +tupletUp = \override TupletBracket #'direction = #UP +tupletDown = \override TupletBracket #'direction = #DOWN tupletNeutral = \revert TupletBracket #'direction cadenzaOn = \set Timing.timing = ##f @@ -100,11 +125,11 @@ cadenzaOff = { \set Timing.measurePosition = #ZERO-MOMENT } -% dynamic ly:dir? text script, articulation script ly:dir? +% 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) +voiceThree = #(context-spec-music (make-voice-props-set 2) 'Voice) voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice) voiceOneStyle = { @@ -163,10 +188,10 @@ huge = { } %% End the incipit and print a ``normal line start''. -endincipit = \context Staff { +endincipit = \context Staff { \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit - \once \override Staff.Clef #'full-size-change = ##t - \once \override Staff.Clef #'non-default = ##t + \once \override Staff.Clef #'full-size-change = ##t + \once \override Staff.Clef #'non-default = ##t \bar "" } @@ -174,15 +199,26 @@ autoBeamOff = \set autoBeaming = ##f autoBeamOn = \set autoBeaming = ##t textLengthOn = { - \override TextScript #'extra-spacing-width = #'(0 . 0) - \override TextScript #'infinite-spacing-height = ##t + \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 #'infinite-spacing-height = ##f + \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) +} + + showStaffSwitch = \set followVoice = ##t hideStaffSwitch = \set followVoice = ##f @@ -210,75 +246,83 @@ defaultTimeSignature = { arpeggio = #(make-music 'ArpeggioEvent) -arpeggioUp = \sequential { +arpeggioArrowUp = { \revert Arpeggio #'stencil + \revert Arpeggio #'X-extent \override Arpeggio #'arpeggio-direction = #UP } -arpeggioDown = \sequential { +arpeggioArrowDown = { \revert Arpeggio #'stencil + \revert Arpeggio #'X-extent \override Arpeggio #'arpeggio-direction = #DOWN } -arpeggioNeutral = \sequential { +arpeggioNormal = { \revert Arpeggio #'stencil + \revert Arpeggio #'X-extent \revert Arpeggio #'arpeggio-direction } -arpeggioBracket = \sequential { +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 +} glissando = #(make-music 'GlissandoEvent) fermataMarkup = \markup { \musicglyph #"scripts.ufermata" } -hideNotes =\sequential { +hideNotes = { % hide notes, accidentals, etc. - \override Dots #'transparent = ##t - \override NoteHead #'transparent = ##t - \override NoteHead #'no-ledgers = ##t - \override Stem #'transparent = ##t - \override Beam #'transparent = ##t - \override Accidental #'transparent = ##t + \override Dots #'transparent = ##t + \override NoteHead #'transparent = ##t + \override NoteHead #'no-ledgers = ##t + \override Stem #'transparent = ##t + \override Beam #'transparent = ##t + \override Accidental #'transparent = ##t } -unHideNotes = \sequential { +unHideNotes = { \revert Accidental #'transparent \revert Beam #'transparent \revert Stem #'transparent \revert NoteHead #'transparent \revert NoteHead #'no-ledgers - \revert Dots #'transparent + \revert Dots #'transparent } germanChords = { - \set chordRootNamer = #(chord-name->german-markup #t) - \set chordNoteNamer = #note-name->german-markup + \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 + \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 + \set chordRootNamer = #(chord-name->italian-markup #t) + \set chordPrefixSpacer = #0.4 } italianChords = { - \set chordRootNamer = #(chord-name->italian-markup #f) - \set chordPrefixSpacer = #0.4 + \set chordRootNamer = #(chord-name->italian-markup #f) + \set chordPrefixSpacer = #0.4 } -improvisationOn = { - \set squashedPosition = #0 - \override NoteHead #'style = #'slash - \override Accidental #'stencil = ##f +improvisationOn = { + \set squashedPosition = #0 + \override NoteHead #'style = #'slash + \override Accidental #'stencil = ##f } -improvisationOff = { - \unset squashedPosition - \revert NoteHead #'style - \revert Accidental #'stencil +improvisationOff = { + \unset squashedPosition + \revert NoteHead #'style + \revert Accidental #'stencil } textSpannerUp = \override TextSpanner #'direction = #UP @@ -286,3 +330,41 @@ 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 +} + +bassFigureStaffAlignmentUp = { + \override Staff.BassFigureAlignmentPositioning #'direction = #UP +} + +bassFigureStaffAlignmentNeutral = { + \revert Staff.BassFigureAlignmentPositioning #'direction +} + +predefinedFretboardsOff = { + \set FretBoards.predefinedDiagramTable = ##f +} + +predefinedFretboardsOn = { + \set FretBoards.predefinedDiagramTable = #fretboard-table +} + +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))