5 stemUp = \override Stem #'direction = #1
6 stemDown = \override Stem #'direction = #-1
7 stemBoth= \revert Stem #'direction
9 slurUp = \override Slur #'direction = #1
10 slurDown = \override Slur #'direction = #-1
11 slurBoth = \revert Slur #'direction
13 % There's also dash, but setting dash period/length should be fixed.
14 slurDotted = \override Slur #'dashed = #1
15 slurSolid = \revert Slur #'dashed
18 phrasingSlurUp = \override PhrasingSlur #'direction = #1
19 phrasingSlurDown = \override PhrasingSlur #'direction = #-1
20 phrasingSlurBoth = \revert PhrasingSlur #'direction
22 shiftOn = \override NoteColumn #'horizontal-shift = #1
23 shiftOnn = \override NoteColumn #'horizontal-shift = #2
24 shiftOnnn = \override NoteColumn #'horizontal-shift = #3
25 shiftOff = \revert NoteColumn #'horizontal-shift
27 tieUp = \override Tie #'direction = #1
28 tieDown = \override Tie #'direction = #-1
29 tieBoth = \revert Tie #'direction
31 tieDotted = \override Tie #'dashed = #1
32 tieSolid = \revert Tie #'dashed
36 \override DynamicText #'direction = #1
37 \override DynamicLineSpanner #'direction = #1
40 \override DynamicText #'direction = #-1
41 \override DynamicLineSpanner #'direction = #-1
44 \revert DynamicText #'direction
45 \revert DynamicLineSpanner #'direction
49 \override TextScript #'direction = #1
50 \override Script #'direction = #1
53 \override TextScript #'direction = #-1
54 \override Script #'direction = #-1
57 \revert TextScript #'direction
58 \revert Script #'direction
61 dotsUp = \override Dots #'direction = #1
62 dotsDown = \override Dots #'direction = #-1
63 dotsBoth = \revert Dots #'direction
65 tupletUp = \override TupletBracket #'direction = #1
66 tupletDown = \override TupletBracket #'direction = #-1
67 tupletBoth = \revert TupletBracket #'direction
69 cadenzaOn = \set Timing.timing = ##f
71 \set Timing.timing = ##t
72 \set Timing.measurePosition = #(ly:make-moment 0 1)
78 % urg, only works for TeX output
79 \context Score \applyoutput
80 #(outputproperty-compatibility (make-type-checker 'paper-column-interface)
81 'between-system-string "\\newpage")
84 % dynamic ly:dir? text script, articulation script ly:dir?
85 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
86 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
87 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
88 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
89 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
103 % End the incipit and print a ``normal line start''.
104 endincipit = \notes \context Staff {
105 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
106 \once \override Staff.Clef #'full-size-change = ##t
107 \once \override Staff.Clef #'non-default = ##t
111 autoBeamOff = \set autoBeaming = ##f
112 autoBeamOn = \set autoBeaming = ##t
114 fatText = \override TextScript #'no-spacing-rods = ##f
115 emptyText = \override TextScript #'no-spacing-rods = ##t
117 showStaffSwitch = \set followVoice = ##t
118 hideStaffSwitch = \set followVoice = ##f
120 % accidentals as they were common in the 18th century.
121 defaultAccidentals = {
122 \set Current.extraNatural = ##t
123 \set Current.autoAccidentals = #'(Staff (same-octave . 0))
124 \set Current.autoCautionaries = #'()
127 % accidentals in voices instead of staves.
128 % Notice that accidentals from one voice do NOT get cancelled in other voices
130 \set Current.extraNatural = ##t
131 \set Current.autoAccidentals = #'(Voice (same-octave . 0))
132 \set Current.autoCautionaries = #'()
136 % accidentals as suggested by Kurt Stone, Music Notation in the 20th century.
137 % This includes all the default accidentals, but accidentals also needs cancelling
138 % in other octaves and in the next measure.
139 modernAccidentals = {
140 \set Current.extraNatural = ##f
141 \set Current.autoAccidentals = #'(Staff (same-octave . 0) (any-octave . 0) (same-octave . 1))
142 \set Current.autoCautionaries = #'()
145 % the accidentals that Stone adds to the old standard as cautionaries
146 modernCautionaries = {
147 \set Current.extraNatural = ##f
148 \set Current.autoAccidentals = #'(Staff (same-octave . 0))
149 \set Current.autoCautionaries = #'(Staff (any-octave . 0) (same-octave . 1))
152 % Multivoice accidentals to be read both by musicians playing one voice
153 % and musicians playing all voices.
154 % Accidentals are typeset for each voice, but they ARE cancelled across voices.
155 modernVoiceAccidentals = {
156 \set Current.extraNatural = ##f
157 \set Current.autoAccidentals = #'(
158 Voice (same-octave . 0) (any-octave . 0) (same-octave . 1)
159 Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
161 \set Current.autoCautionaries = #'()
164 % same as modernVoiceAccidental eccept that all special accidentals are typeset
166 modernVoiceCautionaries = {
167 \set Current.extraNatural = ##f
168 \set Current.autoAccidentals = #'(
169 Voice (same-octave . 0)
171 \set Current.autoCautionaries = #'(
172 Voice (any-octave . 0) (same-octave . 1)
173 Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
177 % stone's suggestions for accidentals on grand staff.
178 % Accidentals are cancelled across the staves in the same grand staff as well
180 \set Current.autoAccidentals = #'(
181 Staff (same-octave . 0) (any-octave . 0) (same-octave . 1)
182 GrandStaff (any-octave . 0) (same-octave . 1)
184 \set Current.autoCautionaries = #'()
187 pianoCautionaries = {
188 \set Current.autoAccidentals = #'(
189 Staff (same-octave . 0)
191 \set Current.autoCautionaries = #'(
192 Staff (any-octave . 0) (same-octave . 1)
193 GrandStaff (any-octave . 0) (same-octave . 1)
198 % Do not reset the key at the start of a measure. Accidentals will be
199 % printed only once and are in effect until overridden, possibly many
202 \set Current.autoAccidentals = #'(Staff (same-octave . #t))
203 \set Current.autoCautionaries = #'()
206 % do not set localKeySignature when a note alterated differently from
207 % localKeySignature is found.
208 % Causes accidentals to be printed at every note instead of
209 % remembered for the duration of a measure.
210 % accidentals not being remembered, causing accidentals always to be typeset relative to the time signature
211 forgetAccidentals = {
212 \set Current.autoAccidentals = #'(Staff (same-octave . -1))
213 \set Current.autoCautionaries = #'()
217 % To remove a Volta bracket or some other graphical object,
218 % set it to turnOff. Example: \set Staff.VoltaBracket = \turnOff
221 %% DO NOT USE THIS. IT CAN LEAD TO CRASHES.
222 turnOff = #(cons '() '())
224 % For drawing vertical chord brackets with \arpeggio
225 % This is a shorthand for the value of the print-function property
226 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
227 % cross-staff brackets are desired.
229 arpeggioBracket = #Arpeggio::brew_chord_bracket
230 arpeggio = #(make-music-by-name 'ArpeggioEvent)
231 glissando = #(make-music-by-name 'GlissandoEvent)
233 fermataMarkup = \markup { \musicglyph #"scripts-ufermata" }
236 \once \override MultiMeasureRestNumber #'text =
240 hideNotes =\sequential {
241 % hide notes, accidentals, etc.
242 \override Dots #'transparent = ##t
243 \override NoteHead #'transparent = ##t
244 \override Stem #'transparent = ##t
245 \override Beam #'transparent = ##t
246 \override Staff.Accidental #'transparent = ##t
250 unHideNotes = \sequential {
251 \revert Staff.Accidental #'transparent
252 \revert Beam #'transparent
253 \revert Stem #'transparent
254 \revert NoteHead #'transparent
255 \revert Dots #'transparent
259 \set chordRootNamer = #(chord-name->german-markup #t)
260 \set chordNoteNamer = #note-name->german-markup
263 \set chordRootNamer = #(chord-name->german-markup #f)
264 \set chordNoteNamer = #note-name->german-markup