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;
108 % try bit flatter slurs
110 slur_clip_ratio = 1.2;
111 slur_clip_height = 3.0 * \staffheight;
112 slur_clip_angle = 100.0;
113 slur_rc_factor = 2.4;
116 notewidth = (\quartwidth + \wholewidth) / 2.0;
119 rulethickness = \staffline;
121 gourlay_energybound = 100000.;
123 The following bounds the number of measures
124 on a line. Decreasing it greatly reduces computation time
126 gourlay_maxmeasures = 10.;
127 castingalgorithm = \Gourlay;
129 %{ Ross. page 151 lists these values, but we think that thick lines
130 and kernings are too thick.
132 bar_kern = 0.5 * \interline;
133 bar_thinkern = 0.75 * \interline;
134 barthick_thick = 0.5* \interline;
135 barthick_score = 0.13333* \interline;
136 barthick_thin = 0.1*\interline;
140 bar_kern = 3.0 * \staffline;
141 bar_thinkern = 3.0 * \staffline;
142 barthick_thick = 6.0* \staffline;
143 barthick_thin = 1.6*\staffline;
144 barthick_score = 1.6*\staffline;
146 tuplet_thick = 1.0*\staffline;
147 volta_thick = 1.6*\staffline;
149 % relative thickness of thin lines 1.6 : 1 : 0.8
150 stemthickness = 0.8*\staffline;
151 rulethickness = \staffline;
154 extender_height = 0.8*\staffline;
156 % Multi-measure rests
157 mmrest_x_minimum = 2.0*\staffheight;
160 % chop off this much when next to pp / ff sign.
161 crescendo_shorten = 4.0 * \interline;
164 restcollision_minimum_dist = 3.0;
165 restcollision_minimum_beamdist = 1.5;
168 postBreakPadding = 0.0;
170 stemSpacingCorrection = 0.5*\interline;
172 \include "engraver.ly";