2 % generic paper parameters
4 paperfile
= \papersize +
".ly";
9 interline
= \staffheight / 4.0;
12 % thickness of stafflines
13 staffline
= \interline / 10.0;
15 beam
_thickness
= 0.52 * (\interline -
\staffline);
16 interbeam
= (2.0 * \interline +
\staffline -
\beam_thickness) / 2.0;
17 interbeam
4 = (3.0 * \interline -
\beam_thickness) / 3.0;
21 % poor man's array size
24 stem
_length
0 = 3.5*\interline;
25 stem
_length
1 = 2.5 * \interline;
26 stem
_length
2 = 2.0 * \interline;
27 stem
_length
3 = 1.5 * \interline;
30 minimum
_stem
_length
0 = 0.0;
% not used
31 minimum
_stem
_length
1 = 1.5 * \interline;
32 minimum
_stem
_length
2 = 1.25 * \interline;
33 minimum
_stem
_length
3 = 1.0 * \interline;
35 % stems in unnatural (forced) direction should be shortened,
36 % according to [Roush & Gourlay]. Their suggestion to knock off
37 % a whole staffspace seems a bit drastical: we'll do half.
39 forced
_stem
_shorten
0 = 0.5 * \interline;
40 forced
_stem
_shorten
1 = \forced_stem_shorten0;
41 forced
_stem
_shorten
2 = \forced_stem_shorten1;
42 forced
_stem
_shorten
3 = \forced_stem_shorten2;
44 % there are several ways to calculate the direction of a beam
46 % * MAJORITY : number count of up or down notes
47 % * MEAN : mean centre distance of all notes
48 % * MEDIAN : mean centre distance weighted per note
50 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
58 beam
_dir
_algorithm
= \MAJORITY;
60 % catch suspect beam slopes, set slope to zero if
61 % outer stem is lengthened more than
62 beam
_lengthened
= 0.2 * \interline;
63 % and slope is running away steeper than
64 beam
_steep
_slope
= 0.2 / 1.0;
66 % OSU: suggested gap = ss / 5;
67 slur
_x
_gap
= \interline / 5.0;
68 slur
_x
_minimum
= 3.0 * \interline;
70 % slope damping: keep dy/dx < slur_slope_damping
71 slur
_slope
_damping
= 0.6;
73 % dy_slur := dy_music * factor
74 slur
_slope
_follow
_music
_factor
= 0.8;
76 tie
_x
_minimum
= \slur_x_minimum;
77 tie
_x
_gap
= \slur_x_gap;
78 tie
_slope
_damping
= 0.8;
80 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
81 % slur_thickness = 1.8 * \staffline;
82 slur
_thickness
= 1.4 * \staffline;
83 slur
_height
_limit
= \staffheight;
86 % try bit flatter slurs
88 slur
_clip
_ratio
= 1.2;
89 slur
_clip
_height
= 3.0 * \staffheight;
90 slur
_clip
_angle
= 100.0;
94 notewidth
= (\quartwidth +
\wholewidth) / 2.0;
97 barsize
= \staffheight;
98 rulethickness
= \staffline;
100 gourlay
_energybound
= 100000.;
102 The following bounds the number of measures
103 on a line. Decreasing it greatly reduces computation time
105 gourlay_maxmeasures = 10.;
106 castingalgorithm = \Gourlay;
108 %{ Ross. page 151 lists these values, but we think that thick lines
109 and kernings are too thick.
111 bar_kern = 0.5 * \interline;
112 bar_thinkern = 0.75 * \interline;
113 barthick_thick = 0.5* \interline;
114 barthick_score = 0.13333* \interline;
115 barthick_thin = 0.1*\interline;
119 bar_kern = 3.0 * \staffline;
120 bar_thinkern = 3.0 * \staffline;
121 barthick_thick = 6.0* \staffline;
122 barthick_thin = 1.6*\staffline;
123 barthick_score = 1.6*\staffline;
125 tuplet_thick = 1.0*\staffline;
126 volta_thick = 1.6*\staffline;
128 % relative thickness of thin lines 1.6 : 1 : 0.8
129 stemthickness = 0.8*\staffline;
130 rulethickness = \staffline;
133 extender_height = 0.8*\staffline;
135 % Multi-measure rests
136 mmrest_x_minimum = 2.0*\staffheight;
139 % chop off this much when next to pp / ff sign.
140 crescendo_shorten = 4.0 * \interline;
143 restcollision_minimum_dist = 3.0;
144 restcollision_minimum_beamdist = 1.5;
146 postBreakPadding = 1.0*\interline;
148 \include "engraver.ly";