5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1
7 stemBoth= \property Voice.Stem \revert #'direction
9 slurUp = \property Voice.Slur \set #'direction = #1
10 slurDown = \property Voice.Slur \set #'direction = #-1
11 slurBoth = \property Voice.Slur \revert #'direction
13 shiftOn = \property Voice.NoteColumn \set #'horizontal-shift = #1
14 shiftOnn = \property Voice.NoteColumn \set #'horizontal-shift = #2
15 shiftOnnn = \property Voice.NoteColumn \set #'horizontal-shift = #3
16 shiftOff = \property Voice.NoteColumn \revert #'horizontal-shift
18 tieUp = \property Voice.Tie \set #'direction = #1
19 tieDown = \property Voice.Tie \set #'direction = #-1
20 tieBoth = \property Voice.Tie \revert #'direction
23 \property Voice.DynamicText \set #'direction = #1
24 \property Voice.DynamicLineSpanner \set #'direction = #1
27 \property Voice.DynamicText \set #'direction = #-1
28 \property Voice.DynamicLineSpanner \set #'direction = #-1
31 \property Voice.DynamicText \revert #'direction
32 \property Voice.DynamicLineSpanner \revert #'direction
36 \property Voice.TextScript \set #'direction = #1
37 \property Voice.Script \set #'direction = #1
40 \property Voice.TextScript \set #'direction = #-1
41 \property Voice.Script \set #'direction = #-1
44 \property Voice.TextScript \revert #'direction
45 \property Voice.Script \revert #'direction
48 dotsUp = \property Voice.Dots \set #'direction = #1
49 dotsDown = \property Voice.Dots \set #'direction = #-1
50 dotsBoth = \property Voice.Dots \revert #'direction
54 \property Voice.TupletBracket \set #'direction = #1
57 \property Voice.TupletBracket \set #'direction = #-1
60 \property Voice.TupletBracket \revert #'direction
65 cadenzaOn = \property Score.timing = ##f
67 \property Score.timing = ##t
68 \property Score.measurePosition = #(make-moment 0 1)
73 % urg, only works for TeX output
74 \context Score \outputproperty #(make-type-checker 'paper-column-interface)
75 #'between-system-string = #"\\newpage"
78 % dynamic dir? text script, articulation script dir?
79 oneVoice = #(context-spec-music (make-voice-props-revert) "Voice")
80 voiceOne = #(context-spec-music (make-voice-props-set 0) "Voice")
81 voiceTwo = #(context-spec-music (make-voice-props-set 1) "Voice")
82 voiceThree =#(context-spec-music (make-voice-props-set 2) "Voice")
83 voiceFour = #(context-spec-music (make-voice-props-set 3) "Voice")
85 % There's also dash, but setting dash period/length should be fixed.
86 slurDotted = \property Voice.Slur \set #'dashed = #1
87 slurSolid = \property Voice.Slur \revert #'dashed
88 tieDotted = \property Voice.Tie \set #'dashed = #1
89 tieSolid = \property Voice.Tie \revert #'dashed
93 \property Voice.fontSize= -2
96 \property Voice.fontSize= -1
100 \property Voice.fontSize= 0
104 \property Staff.keyOctaviation = ##f
108 \property Staff.keyOctaviation = ##t
111 % End the incipit and print a ``normal line start''.
113 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
114 \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
115 \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
119 autoBeamOff = \property Voice.autoBeaming = ##f
120 autoBeamOn = \property Voice.autoBeaming = ##t
122 emptyText = \property Voice.textNonEmpty = ##f
123 fatText = \property Voice.textNonEmpty = ##t
125 showStaffSwitch = \property Voice.followVoice = ##t
126 hideStaffSwitch = \property Voice.followVoice = ##f
128 % FIXME: Move this docu (to where?)
130 % accidentals as they were common in the 18th century.
131 defaultAccidentals = {
132 \property Score.extraNatural = ##t
133 \property Score.autoAccidentals = #'(Staff (same-octave . 0))
134 \property Score.autoCautionaries = #'()
137 % accidentals in voices instead of staves.
138 % Notice that accidentals from one voice do NOT get cancelled in other voices
140 \property Score.extraNatural = ##t
141 \property Score.autoAccidentals = #'(Voice (same-octave . 0))
142 \property Score.autoCautionaries = #'()
146 % accidentals as suggested by Kurt Stone, Music Notation in the 20th century.
147 % This includes all the default accidentals, but accidentals also needs cancelling
148 % in other octaves and in the next measure.
149 modernAccidentals = {
150 \property Score.extraNatural = ##f
151 \property Score.autoAccidentals = #'(Staff (same-octave . 0) (any-octave . 0) (any-octave . 1))
152 \property Score.autoCautionaries = #'()
155 % the accidentals that Stone adds to the old standard as cautionaries
156 modernCautionaries = {
157 \property Score.extraNatural = ##f
158 \property Score.autoAccidentals = #'(Staff (same-octave . 0))
159 \property Score.autoCautionaries = #'(Staff (any-octave . 0) (any-octave . 1))
162 % Multivoice accidentals to be read both by musicians playing one voice
163 % and musicians playing all voices.
164 % Accidentals are typeset for each voice, but they ARE cancelled across voices.
165 modernVoiceAccidentals = {
166 \property Staff.extraNatural = ##f
167 \property Staff.autoAccidentals = #'(
168 Voice (same-octave . 0) (any-octave . 0) (any-octave . 1)
169 Staff (same-octave . 0) (any-octave . 0) (any-octave . 1)
171 \property Staff.autoCautionaries = #'()
174 % same as modernVoiceAccidental eccept that all special accidentals are typeset
176 modernVoiceCautionaries = {
177 \property Staff.extraNatural = ##f
178 \property Staff.autoAccidentals = #'(
179 Voice (same-octave . 0)
181 \property Staff.autoCautionaries = #'(
182 Voice (any-octave . 0) (any-octave . 1)
183 Staff (same-octave . 0) (any-octave . 0) (any-octave . 1)
187 % stone's suggestions for accidentals on grand staff.
188 % Accidentals are cancelled across the staves in the same grand staff as well
190 \property GrandStaff.autoAccidentals = #'(
191 Staff (same-octave . 0) (any-octave . 0) (any-octave . 1)
192 GrandStaff (any-octave . 1)
194 \property GrandStaff.autoCautionaries = #'()
197 % Do not reset the key at the start of a measure. Accidentals will be
198 % printed only once and are in effect until overridden, possibly many
201 \property Score.autoAccidentals = #'(Staff (same-octave . #t))
202 \property Score.autoCautionaries = #'()
205 % do not set localKeySignature when a note alterated differently from
206 % localKeySignature is found.
207 % Causes accidentals to be printed at every note instead of
208 % remembered for the duration of a measure.
209 % accidentals not being remembered, causing accidentals always to be typeset relative to the time signature
210 forgetAccidentals = {
211 \property Score.autoAccidentals = #'(Staff (same-octave . -1))
212 \property Score.autoCautionaries = #'()
216 % To remove a Volta bracket or some other graphical object,
217 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
221 % For drawing vertical chord brackets with \arpeggio
222 % This is a shorthand for the value of the molecule-callback property
223 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether
224 % cross-staff brackets are desired.
226 arpeggioBracket = #(lambda (grob) (Arpeggio::brew_chord_bracket grob))