2 % generic paper parameters
4 paperfile = \papersize + ".ly";
9 interline = \staffheight / 4.0;
12 % thickness of stafflines
13 staffline = \interline / 10.0;
15 % urg, need grace_ versions of these too?
16 beam_thickness = 0.52 * (\interline - \staffline);
17 interbeam = (2.0 * \interline + \staffline - \beam_thickness) / 2.0;
18 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
22 % poor man's array size
25 %{ Specify length of stems for notes in the staff
26 that don't have beams.
27 Measured in staff positions.
35 The space taken by a note is determined by the formula
37 arithmetic_multiplier * ( c + log2 (time) ))
39 where code(time) is the amount of time a note occupies. The value
40 of code(c) is chosen such that the smallest space within a measure is
41 arithmetic_basicspace. The smallest space is the one following the
42 shortest note in the measure. Typically arithmetic_basicspace is set
43 to the width of a quarter note head.
45 arithmetic_basicspace = 2.;
46 arithmetic_multiplier = 0.9 * \quartwidth ;
51 % if only these ugly arrays were scm,
52 % we could override them in the Grace context
54 grace_stem_length0 = \stem_length0 * \grace_factor;
55 grace_stem_length1 = \stem_length1 * \grace_factor;
56 grace_stem_length2 = \stem_length2 * \grace_factor;
57 grace_stem_length3 = \stem_length3 * \grace_factor;
60 minimum_stem_length0 = 0.0 ; % not used
61 minimum_stem_length1 = 3. ;
62 minimum_stem_length2 = 2.5;
63 minimum_stem_length3 = 2.0;
65 grace_minimum_stem_length0 = 0.0 ; % not used
66 grace_minimum_stem_length1 = \minimum_stem_length1 * \grace_factor;
67 grace_minimum_stem_length2 = \minimum_stem_length2 * \grace_factor;
68 grace_minimum_stem_length3 = \minimum_stem_length3 * \grace_factor;
71 stems in unnatural (forced) direction should be shortened,
72 according to [Roush & Gourlay]. Their suggestion to knock off
73 a whole staffspace seems a bit drastical: we'll do half.
76 forced_stem_shorten0 = 1.0;
77 forced_stem_shorten1 = \forced_stem_shorten0;
78 forced_stem_shorten2 = \forced_stem_shorten1;
79 forced_stem_shorten3 = \forced_stem_shorten2;
81 % don't shorten grace stems, always up
82 grace_forced_stem_shorten0 = 0.;
83 grace_forced_stem_shorten1 = \grace_forced_stem_shorten0;
84 grace_forced_stem_shorten2 = \grace_forced_stem_shorten1;
85 grace_forced_stem_shorten3 = \grace_forced_stem_shorten2;
87 % there are several ways to calculate the direction of a beam
89 % * MAJORITY : number count of up or down notes
90 % * MEAN : mean centre distance of all notes
91 % * MEDIAN : mean centre distance weighted per note
93 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
102 dit(code(beam_dir_algorithm)) Specify algorithm for determining
103 whether beams go up or down. It is real valued. If set to 2.0 then
104 majority selection is used. If set to 3.0, then mean selection is
105 used based on the mean center distance. If set to 4.0 then median
106 selection is used, based on the median center distance.
110 beam_dir_algorithm = \MAJORITY;
112 % catch suspect beam slopes, set slope to zero if
113 % outer stem is lengthened more than
114 beam_lengthened = 0.2 * \interline;
115 % and slope is running away steeper than
116 beam_steep_slope = 0.2 / 1.0;
119 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
120 code(\interline / 5) by default.
123 % OSU: suggested gap = ss / 5;
124 slur_x_gap = \interline / 5.0;
125 slur_y_gap = 0.25 * \interline;
126 slur_y_free = 0.75 * \interline;
127 slur_x_minimum = 1.5 * \interline;
130 Like beams, slurs often aren't as steep as the notes they encompass.
131 This sets the amount of damping.
133 % slope damping: keep dy/dx < slur_slope_damping
134 slur_slope_damping = 0.3;
135 slur_interstaff_slope_damping = 0.6;
136 % height damping: keep h/dx < slur_height_damping
137 slur_height_damping = 0.4;
138 slur_interstaff_height_damping = 0.5;
139 % snap to stem if slur ends closer to stem than
140 slur_snap_to_stem = 1.75 * \interline;
141 slur_interstaff_snap_to_stem = 2.5 * \interline;
142 % maximum dy change allowed by snapping
143 slur_snap_max_slope_change = 0.5;
144 slur_interstaff_snap_max_slope_change = 0.5;
148 tie_x_minimum = \interline + \slur_x_minimum;
149 % OSU: tie gap == slur gap
150 tie_x_gap = \slur_x_gap;
151 tie_y_gap = 0.25 * \interline;
152 % length of a tie that's a staffspace high
153 tie_staffspace_length = 4.0 * \interline;
155 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
156 % slur_thickness = 1.8 * \staffline;
157 slur_thickness = 1.4 * \staffline;
160 Specifies the maximum height of slurs.
162 slur_height_limit = \staffheight;
166 Specifes the ratio of slur hight to slur width
167 to aim for. Default value is 0.3.
171 % try bit flatter slurs
173 slur_clip_ratio = 1.2;
174 slur_clip_height = 3.0 * \staffheight;
175 slur_clip_angle = 100.0;
176 slur_rc_factor = 2.4;
179 notewidth = (\quartwidth + \wholewidth) / 2.0;
182 rulethickness = \staffline;
184 gourlay_energybound = 100000.;
186 Maximum number of measures per line to try when using Gourlay
189 gourlay_maxmeasures = 10.;
192 %{ Ross. page 151 lists these values, but we think that thick lines
193 and kernings are too thick.
195 bar_kern = 0.5 * \interline;
196 bar_thinkern = 0.75 * \interline;
197 barthick_thick = 0.5* \interline;
198 barthick_score = 0.13333* \interline;
199 barthick_thin = 0.1*\interline;
203 bar_kern = 3.0 * \staffline;
204 bar_thinkern = 3.0 * \staffline;
205 barthick_thick = 6.0* \staffline;
206 barthick_thin = 1.6*\staffline;
207 barthick_score = 1.6*\staffline;
209 tuplet_spanner_gap = 2.0 * \interline;
210 tuplet_thick = 1.0*\staffline;
211 volta_thick = 1.6*\staffline;
212 volta_spanner_height = 2.0 *\interline;
214 % relative thickness of thin lines 1.6 : 1 : 0.8
215 stemthickness = 0.8*\staffline;
216 rulethickness = \staffline;
219 extender_height = 0.8*\staffline;
221 hyphen_thickness = 0.05*\font_normal;
222 hyphen_height = 0.2*\font_normal;
223 hyphen_minimum_length = 0.25*\font_normal;
225 % Multi-measure rests
226 mmrest_x_minimum = 1.4*\staffheight;
229 % chop off this much when next to pp / ff sign.
230 crescendo_shorten = 4.0 * \interline;
231 crescendo_thickness = \staffline;
234 restcollision_minimum_dist = 3.0;
235 restcollision_minimum_beamdist = 1.5;
238 postBreakPadding = 0.0;
240 % optical correction amount.
241 stemSpacingCorrection = 0.5*\interline;
245 relative strength of space following breakable columns (eg. prefatory matter)
247 breakable_column_space_strength = 2.0;
249 % space after inline clefs and such get this much stretched
250 decrease_nonmus_spacing_factor = 1.0 ;
253 space before musical columns (eg. taken by accidentals) get this much
254 stretched when they follow a musical column, in absence of grace notes.
256 0.0 means no extra space (accidentals are ignored)
258 musical_to_musical_left_spacing_factor = 0.4;
261 stretch space this much if there are grace notes before the column
263 before_grace_spacing_factor = 1.2;
266 If columns do not have spacing information set, set it to this much
268 loose_column_distance = 2.0 * \interline;
271 Relative cost of compressing (vs. stretching). Increasing this
272 will cause scores to be set looser
276 compression_energy_factor = 0.6;
278 % if stem is on middle line, choose this direction.
279 stem_default_neutral_direction = 1.0;
282 articulation_script_padding_default = 1.0;
284 % Backward compatibility -- has no function;
288 \include "engraver.ly";