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_x_minimum = 3.0 * \interline;
92 % slope damping: keep dy/dx < slur_slope_damping
93 slur_slope_damping = 0.6;
95 % dy_slur := dy_music * factor
96 slur_slope_follow_music_factor = 0.8;
98 tie_x_minimum = \slur_x_minimum;
99 tie_x_gap = \slur_x_gap;
100 tie_slope_damping = 0.8;
102 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
103 % slur_thickness = 1.8 * \staffline;
104 slur_thickness = 1.4 * \staffline;
105 slur_height_limit = \staffheight;
110 % try bit flatter slurs
112 slur_clip_ratio = 1.2;
113 slur_clip_height = 3.0 * \staffheight;
114 slur_clip_angle = 100.0;
115 slur_rc_factor = 2.4;
118 notewidth = (\quartwidth + \wholewidth) / 2.0;
121 rulethickness = \staffline;
123 gourlay_energybound = 100000.;
125 The following bounds the number of measures
126 on a line. Decreasing it greatly reduces computation time
128 gourlay_maxmeasures = 10.;
129 castingalgorithm = \Gourlay;
131 %{ Ross. page 151 lists these values, but we think that thick lines
132 and kernings are too thick.
134 bar_kern = 0.5 * \interline;
135 bar_thinkern = 0.75 * \interline;
136 barthick_thick = 0.5* \interline;
137 barthick_score = 0.13333* \interline;
138 barthick_thin = 0.1*\interline;
142 bar_kern = 3.0 * \staffline;
143 bar_thinkern = 3.0 * \staffline;
144 barthick_thick = 6.0* \staffline;
145 barthick_thin = 1.6*\staffline;
146 barthick_score = 1.6*\staffline;
148 tuplet_spanner_gap = 2.0 * \interline;
149 tuplet_thick = 1.0*\staffline;
150 volta_thick = 1.6*\staffline;
151 volta_spanner_height = 2.0 *\interline;
153 % relative thickness of thin lines 1.6 : 1 : 0.8
154 stemthickness = 0.8*\staffline;
155 rulethickness = \staffline;
158 extender_height = 0.8*\staffline;
160 hyphen_thickness = 0.05*\font_normal;
161 hyphen_height = 0.2*\font_normal;
162 hyphen_minimum_length = 0.25*\font_normal;
164 % Multi-measure rests
165 mmrest_x_minimum = 2.0*\staffheight;
168 % chop off this much when next to pp / ff sign.
169 crescendo_shorten = 4.0 * \interline;
170 crescendo_thickness = \staffline;
173 restcollision_minimum_dist = 3.0;
174 restcollision_minimum_beamdist = 1.5;
177 postBreakPadding = 0.0;
179 % optical correction amount.
180 stemSpacingCorrection = 0.5*\interline;
188 \include "engraver.ly";