% property-init.ly
-\version "1.9.7"
+\version "2.1.22"
-stemUp = \property Voice.Stem \set #'direction = #1
-stemDown = \property Voice.Stem \set #'direction = #-1
-stemBoth= \property Voice.Stem \revert #'direction
+stemUp = \override Stem #'direction = #1
+stemDown = \override Stem #'direction = #-1
+stemBoth= \revert Stem #'direction
-slurUp = \property Voice.Slur \set #'direction = #1
-slurDown = \property Voice.Slur \set #'direction = #-1
-slurBoth = \property Voice.Slur \revert #'direction
+slurUp = \override Slur #'direction = #1
+slurDown = \override Slur #'direction = #-1
+slurBoth = \revert Slur #'direction
% There's also dash, but setting dash period/length should be fixed.
-slurDotted = \property Voice.Slur \set #'dashed = #1
-slurSolid = \property Voice.Slur \revert #'dashed
+slurDotted = \override Slur #'dashed = #1
+slurSolid = \revert Slur #'dashed
-phrasingSlurUp = \property Voice.PhrasingSlur \set #'direction = #1
-phrasingSlurDown = \property Voice.PhrasingSlur \set #'direction = #-1
-phrasingSlurBoth = \property Voice.PhrasingSlur \revert #'direction
+phrasingSlurUp = \override PhrasingSlur #'direction = #1
+phrasingSlurDown = \override PhrasingSlur #'direction = #-1
+phrasingSlurBoth = \revert PhrasingSlur #'direction
-shiftOn = \property Voice.NoteColumn \set #'horizontal-shift = #1
-shiftOnn = \property Voice.NoteColumn \set #'horizontal-shift = #2
-shiftOnnn = \property Voice.NoteColumn \set #'horizontal-shift = #3
-shiftOff = \property Voice.NoteColumn \revert #'horizontal-shift
+shiftOn = \override NoteColumn #'horizontal-shift = #1
+shiftOnn = \override NoteColumn #'horizontal-shift = #2
+shiftOnnn = \override NoteColumn #'horizontal-shift = #3
+shiftOff = \revert NoteColumn #'horizontal-shift
-tieUp = \property Voice.Tie \set #'direction = #1
-tieDown = \property Voice.Tie \set #'direction = #-1
-tieBoth = \property Voice.Tie \revert #'direction
+tieUp = \override Tie #'direction = #1
+tieDown = \override Tie #'direction = #-1
+tieBoth = \revert Tie #'direction
-tieDotted = \property Voice.Tie \set #'dashed = #1
-tieSolid = \property Voice.Tie \revert #'dashed
+tieDotted = \override Tie #'dashed = #1
+tieSolid = \revert Tie #'dashed
dynamicUp = {
- \property Voice.DynamicText \set #'direction = #1
- \property Voice.DynamicLineSpanner \set #'direction = #1
+ \override DynamicText #'direction = #1
+ \override DynamicLineSpanner #'direction = #1
}
dynamicDown = {
- \property Voice.DynamicText \set #'direction = #-1
- \property Voice.DynamicLineSpanner \set #'direction = #-1
+ \override DynamicText #'direction = #-1
+ \override DynamicLineSpanner #'direction = #-1
}
dynamicBoth = {
- \property Voice.DynamicText \revert #'direction
- \property Voice.DynamicLineSpanner \revert #'direction
+ \revert DynamicText #'direction
+ \revert DynamicLineSpanner #'direction
}
scriptUp = {
- \property Voice.TextScript \set #'direction = #1
- \property Voice.Script \set #'direction = #1
+ \override TextScript #'direction = #1
+ \override Script #'direction = #1
}
scriptDown = {
- \property Voice.TextScript \set #'direction = #-1
- \property Voice.Script \set #'direction = #-1
+ \override TextScript #'direction = #-1
+ \override Script #'direction = #-1
}
scriptBoth = {
- \property Voice.TextScript \revert #'direction
- \property Voice.Script \revert #'direction
+ \revert TextScript #'direction
+ \revert Script #'direction
}
-dotsUp = \property Voice.Dots \set #'direction = #1
-dotsDown = \property Voice.Dots \set #'direction = #-1
-dotsBoth = \property Voice.Dots \revert #'direction
+dotsUp = \override Dots #'direction = #1
+dotsDown = \override Dots #'direction = #-1
+dotsBoth = \revert Dots #'direction
-tupletUp = \property Voice.TupletBracket \set #'direction = #1
-tupletDown = \property Voice.TupletBracket \set #'direction = #-1
-tupletBoth = \property Voice.TupletBracket \revert #'direction
+tupletUp = \override TupletBracket #'direction = #1
+tupletDown = \override TupletBracket #'direction = #-1
+tupletBoth = \revert TupletBracket #'direction
-cadenzaOn = \property Timing.timing = ##f
+cadenzaOn = \set Timing.timing = ##f
cadenzaOff = {
- \property Timing.timing = ##t
- \property Timing.measurePosition = #(ly:make-moment 0 1)
+ \set Timing.timing = ##t
+ \set Timing.measurePosition = #(ly:make-moment 0 1)
}
newpage = \notes
tiny =
- \property Voice.fontSize= #-2
+ \set fontSize = #-2
small =
- \property Voice.fontSize= #-1
+ \set fontSize = #-1
normalsize = {
- \property Voice.fontSize= #0
+ \set fontSize = #0
}
% End the incipit and print a ``normal line start''.
endincipit = \notes \context Staff {
\partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
- \once \property Staff.Clef \set #'full-size-change = ##t
- \once \property Staff.Clef \set #'non-default = ##t
+ \once \override Staff.Clef #'full-size-change = ##t
+ \once \override Staff.Clef #'non-default = ##t
\bar ""
}
-autoBeamOff = \property Voice.autoBeaming = ##f
-autoBeamOn = \property Voice.autoBeaming = ##t
+autoBeamOff = \set autoBeaming = ##f
+autoBeamOn = \set autoBeaming = ##t
-fatText = \property Voice.TextScript \set #'no-spacing-rods = ##f
-emptyText = \property Voice.TextScript \set #'no-spacing-rods = ##t
+fatText = \override TextScript #'no-spacing-rods = ##f
+emptyText = \override TextScript #'no-spacing-rods = ##t
-showStaffSwitch = \property Voice.followVoice = ##t
-hideStaffSwitch = \property Voice.followVoice = ##f
+showStaffSwitch = \set followVoice = ##t
+hideStaffSwitch = \set followVoice = ##f
% accidentals as they were common in the 18th century.
defaultAccidentals = {
- \property Current.extraNatural = ##t
- \property Current.autoAccidentals = #'(Staff (same-octave . 0))
- \property Current.autoCautionaries = #'()
+ \set Current.extraNatural = ##t
+ \set Current.autoAccidentals = #'(Staff (same-octave . 0))
+ \set Current.autoCautionaries = #'()
}
% accidentals in voices instead of staves.
% Notice that accidentals from one voice do NOT get cancelled in other voices
voiceAccidentals = {
- \property Current.extraNatural = ##t
- \property Current.autoAccidentals = #'(Voice (same-octave . 0))
- \property Current.autoCautionaries = #'()
+ \set Current.extraNatural = ##t
+ \set Current.autoAccidentals = #'(Voice (same-octave . 0))
+ \set Current.autoCautionaries = #'()
}
% This includes all the default accidentals, but accidentals also needs cancelling
% in other octaves and in the next measure.
modernAccidentals = {
- \property Current.extraNatural = ##f
- \property Current.autoAccidentals = #'(Staff (same-octave . 0) (any-octave . 0) (same-octave . 1))
- \property Current.autoCautionaries = #'()
+ \set Current.extraNatural = ##f
+ \set Current.autoAccidentals = #'(Staff (same-octave . 0) (any-octave . 0) (same-octave . 1))
+ \set Current.autoCautionaries = #'()
}
% the accidentals that Stone adds to the old standard as cautionaries
modernCautionaries = {
- \property Current.extraNatural = ##f
- \property Current.autoAccidentals = #'(Staff (same-octave . 0))
- \property Current.autoCautionaries = #'(Staff (any-octave . 0) (same-octave . 1))
+ \set Current.extraNatural = ##f
+ \set Current.autoAccidentals = #'(Staff (same-octave . 0))
+ \set Current.autoCautionaries = #'(Staff (any-octave . 0) (same-octave . 1))
}
% Multivoice accidentals to be read both by musicians playing one voice
% and musicians playing all voices.
% Accidentals are typeset for each voice, but they ARE cancelled across voices.
modernVoiceAccidentals = {
- \property Current.extraNatural = ##f
- \property Current.autoAccidentals = #'(
+ \set Current.extraNatural = ##f
+ \set Current.autoAccidentals = #'(
Voice (same-octave . 0) (any-octave . 0) (same-octave . 1)
Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
)
- \property Current.autoCautionaries = #'()
+ \set Current.autoCautionaries = #'()
}
% same as modernVoiceAccidental eccept that all special accidentals are typeset
% as cautionaries
modernVoiceCautionaries = {
- \property Current.extraNatural = ##f
- \property Current.autoAccidentals = #'(
+ \set Current.extraNatural = ##f
+ \set Current.autoAccidentals = #'(
Voice (same-octave . 0)
)
- \property Current.autoCautionaries = #'(
+ \set Current.autoCautionaries = #'(
Voice (any-octave . 0) (same-octave . 1)
Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
)
% stone's suggestions for accidentals on grand staff.
% Accidentals are cancelled across the staves in the same grand staff as well
pianoAccidentals = {
- \property Current.autoAccidentals = #'(
+ \set Current.autoAccidentals = #'(
Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
GrandStaff (any-octave . 0) (same-octave . 1)
)
- \property Current.autoCautionaries = #'()
+ \set Current.autoCautionaries = #'()
}
pianoCautionaries = {
- \property Current.autoAccidentals = #'(
+ \set Current.autoAccidentals = #'(
Staff (same-octave . 0)
)
- \property Current.autoCautionaries = #'(
+ \set Current.autoCautionaries = #'(
Staff (any-octave . 0) (same-octave . 1)
GrandStaff (any-octave . 0) (same-octave . 1)
)
% printed only once and are in effect until overridden, possibly many
% measures later.
noResetKey = {
- \property Current.autoAccidentals = #'(Staff (same-octave . #t))
- \property Current.autoCautionaries = #'()
+ \set Current.autoAccidentals = #'(Staff (same-octave . #t))
+ \set Current.autoCautionaries = #'()
}
% do not set localKeySignature when a note alterated differently from
% remembered for the duration of a measure.
% accidentals not being remembered, causing accidentals always to be typeset relative to the time signature
forgetAccidentals = {
- \property Current.autoAccidentals = #'(Staff (same-octave . -1))
- \property Current.autoCautionaries = #'()
+ \set Current.autoAccidentals = #'(Staff (same-octave . -1))
+ \set Current.autoCautionaries = #'()
}
% To remove a Volta bracket or some other graphical object,
-% set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
+% set it to turnOff. Example: \set Staff.VoltaBracket = \turnOff
%%
%% DO NOT USE THIS. IT CAN LEAD TO CRASHES.
-turnOff = #'()
+turnOff = #(cons '() '())
% For drawing vertical chord brackets with \arpeggio
-% This is a shorthand for the value of the molecule-callback property
+% 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.
-arpeggioBracket = #(lambda (grob) (Arpeggio::brew_chord_bracket grob))
+arpeggioBracket = #Arpeggio::brew_chord_bracket
arpeggio = #(make-music-by-name 'ArpeggioEvent)
glissando = #(make-music-by-name 'GlissandoEvent)
fermataMarkup = \markup { \musicglyph #"scripts-ufermata" }
setMmRestFermata =
- \once \property Voice.MultiMeasureRestNumber \override #'text =
+ \once \override MultiMeasureRestNumber #'text =
#fermataMarkup
hideNotes =\sequential {
% hide notes, accidentals, etc.
- \property Voice.Dots \override #'transparent = ##t
- \property Voice.NoteHead \override #'transparent = ##t
- \property Voice.Stem \override #'transparent = ##t
- \property Voice.Beam \override #'transparent = ##t
- \property Staff.Accidental \override #'transparent = ##t
+ \override Dots #'transparent = ##t
+ \override NoteHead #'transparent = ##t
+ \override Stem #'transparent = ##t
+ \override Beam #'transparent = ##t
+ \override Staff.Accidental #'transparent = ##t
}
unHideNotes = \sequential {
- \property Staff.Accidental \revert #'transparent
- \property Voice.Beam \revert #'transparent
- \property Voice.Stem \revert #'transparent
- \property Voice.NoteHead \revert #'transparent
- \property Voice.Dots \revert #'transparent
+ \revert Staff.Accidental #'transparent
+ \revert Beam #'transparent
+ \revert Stem #'transparent
+ \revert NoteHead #'transparent
+ \revert Dots #'transparent
}
germanChords = {
- \property ChordNames. chordRootNamer = #(chord-name->german-markup #t)
- \property ChordNames. chordNoteNamer = #note-name->german-markup
+ \set chordRootNamer = #(chord-name->german-markup #t)
+ \set chordNoteNamer = #note-name->german-markup
}
semiGermanChords = {
- \property ChordNames. chordRootNamer = #(chord-name->german-markup #f)
- \property ChordNames. chordNoteNamer = #note-name->german-markup
+ \set chordRootNamer = #(chord-name->german-markup #f)
+ \set chordNoteNamer = #note-name->german-markup
}