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 % stem stuff measured in staff positions.
32 % if only these ugly arrays were scm,
33 % we could override them in the Grace context
35 grace_stem_length0 = \stem_length0 * \grace_factor;
36 grace_stem_length1 = \stem_length1 * \grace_factor;
37 grace_stem_length2 = \stem_length2 * \grace_factor;
38 grace_stem_length3 = \stem_length3 * \grace_factor;
41 minimum_stem_length0 = 0.0 ; % not used
42 minimum_stem_length1 = 3. ;
43 minimum_stem_length2 = 2.5;
44 minimum_stem_length3 = 2.0;
46 grace_minimum_stem_length0 = 0.0 ; % not used
47 grace_minimum_stem_length1 = \minimum_stem_length1 * \grace_factor;
48 grace_minimum_stem_length2 = \minimum_stem_length2 * \grace_factor;
49 grace_minimum_stem_length3 = \minimum_stem_length3 * \grace_factor;
51 % stems in unnatural (forced) direction should be shortened,
52 % according to [Roush & Gourlay]. Their suggestion to knock off
53 % a whole staffspace seems a bit drastical: we'll do half.
55 forced_stem_shorten0 = 1.0;
56 forced_stem_shorten1 = \forced_stem_shorten0;
57 forced_stem_shorten2 = \forced_stem_shorten1;
58 forced_stem_shorten3 = \forced_stem_shorten2;
60 % don't shorten grace stems, always up
61 grace_forced_stem_shorten0 = 0.;
62 grace_forced_stem_shorten1 = \grace_forced_stem_shorten0;
63 grace_forced_stem_shorten2 = \grace_forced_stem_shorten1;
64 grace_forced_stem_shorten3 = \grace_forced_stem_shorten2;
66 % there are several ways to calculate the direction of a beam
68 % * MAJORITY : number count of up or down notes
69 % * MEAN : mean centre distance of all notes
70 % * MEDIAN : mean centre distance weighted per note
72 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
80 beam_dir_algorithm = \MAJORITY;
82 % catch suspect beam slopes, set slope to zero if
83 % outer stem is lengthened more than
84 beam_lengthened = 0.2 * \interline;
85 % and slope is running away steeper than
86 beam_steep_slope = 0.2 / 1.0;
88 % OSU: suggested gap = ss / 5;
89 slur_x_gap = \interline / 5.0;
90 slur_y_gap = 0.25 * \interline;
91 slur_y_free = 0.75 * \interline;
92 slur_x_minimum = 3.0 * \interline;
94 % slope damping: keep dy/dx < slur_slope_damping
95 slur_slope_damping = 0.3;
96 % height damping: keep h/dx < slur_height_damping
97 slur_height_damping = 0.5;
98 % snap to stem if slur ends closer to stem than
99 slur_snap_to_stem = 1.5 * \interline;
101 tie_x_minimum = \slur_x_minimum;
102 % OSU: tie gap == slur gap
103 tie_x_gap = \slur_x_gap;
104 tie_y_gap = 0.25 * \interline;
105 % length of a tie that's a staffspace high
106 tie_staffspace_length = 4.0 * \interline;
108 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
109 % slur_thickness = 1.8 * \staffline;
110 slur_thickness = 1.4 * \staffline;
111 slur_height_limit = \staffheight;
116 % try bit flatter slurs
118 slur_clip_ratio = 1.2;
119 slur_clip_height = 3.0 * \staffheight;
120 slur_clip_angle = 100.0;
121 slur_rc_factor = 2.4;
124 notewidth = (\quartwidth + \wholewidth) / 2.0;
127 rulethickness = \staffline;
129 gourlay_energybound = 100000.;
131 The following bounds the number of measures
132 on a line. Decreasing it greatly reduces computation time
134 gourlay_maxmeasures = 10.;
135 castingalgorithm = \Gourlay;
137 %{ Ross. page 151 lists these values, but we think that thick lines
138 and kernings are too thick.
140 bar_kern = 0.5 * \interline;
141 bar_thinkern = 0.75 * \interline;
142 barthick_thick = 0.5* \interline;
143 barthick_score = 0.13333* \interline;
144 barthick_thin = 0.1*\interline;
148 bar_kern = 3.0 * \staffline;
149 bar_thinkern = 3.0 * \staffline;
150 barthick_thick = 6.0* \staffline;
151 barthick_thin = 1.6*\staffline;
152 barthick_score = 1.6*\staffline;
154 tuplet_spanner_gap = 2.0 * \interline;
155 tuplet_thick = 1.0*\staffline;
156 volta_thick = 1.6*\staffline;
157 volta_spanner_height = 2.0 *\interline;
159 % relative thickness of thin lines 1.6 : 1 : 0.8
160 stemthickness = 0.8*\staffline;
161 rulethickness = \staffline;
164 extender_height = 0.8*\staffline;
166 hyphen_thickness = 0.05*\font_normal;
167 hyphen_height = 0.2*\font_normal;
168 hyphen_minimum_length = 0.25*\font_normal;
170 % Multi-measure rests
171 mmrest_x_minimum = 2.0*\staffheight;
174 % chop off this much when next to pp / ff sign.
175 crescendo_shorten = 4.0 * \interline;
176 crescendo_thickness = \staffline;
179 restcollision_minimum_dist = 3.0;
180 restcollision_minimum_beamdist = 1.5;
183 postBreakPadding = 0.0;
185 % optical correction amount.
186 stemSpacingCorrection = 0.5*\interline;
189 % relative strength of space following time signature,
190 non_musical_space_strength = 4.0;
196 \include "engraver.ly";