]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
release: 1.1.51
[lilypond.git] / ly / params.ly
1 % params.ly
2 % generic paper parameters
3
4 paperfile = \papersize + ".ly";
5 % paperfile = "a4.ly";
6 \include \paperfile;
7 \include "paper.ly";
8
9 interline = \staffheight / 4.0;
10
11
12 % thickness of stafflines
13 staffline = \interline / 10.0;
14
15 beam_thickness = 0.52 * (\interline - \staffline);
16 interbeam = (2.0 * \interline + \staffline - \beam_thickness) / 2.0;
17 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
18
19 % stems and beams
20 %
21 % poor man's array size
22 stem_max = 3.0;
23
24 % stem stuff measured in staff positions.
25 stem_length0 = 7.;
26 stem_length1 = 5.;
27 stem_length2 = 4.;
28 stem_length3 = 3.;
29
30 % only used for beams
31 minimum_stem_length0 = 0.0 ; % not used
32 minimum_stem_length1 = 3. ;
33 minimum_stem_length2 = 2.5;
34 minimum_stem_length3 = 2.0;
35
36 % stems in unnatural (forced) direction should be shortened,
37 % according to [Roush & Gourlay].  Their suggestion to knock off
38 % a whole staffspace seems a bit drastical: we'll do half.
39 %
40 forced_stem_shorten0 = 1.0;
41 forced_stem_shorten1 = \forced_stem_shorten0;
42 forced_stem_shorten2 = \forced_stem_shorten1;
43 forced_stem_shorten3 = \forced_stem_shorten2;
44
45 % there are several ways to calculate the direction of a beam
46
47 % * MAJORITY : number count of up or down notes
48 % * MEAN     : mean centre distance of all notes
49 % * MEDIAN   : mean centre distance weighted per note
50 %
51 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
52 %
53 DOWN = -1.0;
54 UP = 1.0;
55 MAJORITY = 2.0;
56 MEAN = 3.0;
57 MEDIAN = 4.0;
58 % [Ross]: majority
59 beam_dir_algorithm = \MAJORITY;
60
61 % catch suspect beam slopes, set slope to zero if
62 % outer stem is lengthened more than
63 beam_lengthened = 0.2 * \interline;
64 % and slope is running away steeper than
65 beam_steep_slope = 0.2 / 1.0;
66
67 % OSU: suggested gap = ss / 5;
68 slur_x_gap = \interline / 5.0;
69 slur_x_minimum = 3.0 * \interline;
70
71 % slope damping: keep dy/dx < slur_slope_damping
72 slur_slope_damping = 0.6;
73
74 % dy_slur := dy_music * factor
75 slur_slope_follow_music_factor = 0.8;
76
77 tie_x_minimum = \slur_x_minimum;
78 tie_x_gap = \slur_x_gap;
79 tie_slope_damping = 0.8;
80
81 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
82 % slur_thickness = 1.8 * \staffline;
83 slur_thickness = 1.4 * \staffline;
84 slur_height_limit = \staffheight;
85
86 % slur_ratio = 0.3;
87 % try bit flatter slurs
88 slur_ratio = 0.25;
89 slur_clip_ratio = 1.2;
90 slur_clip_height = 3.0 * \staffheight;
91 slur_clip_angle = 100.0;
92 slur_rc_factor = 2.4;
93
94 % ugh
95 notewidth = (\quartwidth + \wholewidth) / 2.0;
96
97 % ugh
98 barsize = \staffheight;
99 rulethickness = \staffline;
100
101 gourlay_energybound = 100000.;
102 %{
103 The following bounds the number of measures
104 on a line.  Decreasing it greatly reduces computation time
105 %}
106 gourlay_maxmeasures = 10.;
107 castingalgorithm = \Gourlay;
108
109 %{ Ross. page 151 lists these values, but we think that thick lines
110 and kernings are too thick.
111
112 bar_kern = 0.5 * \interline;
113 bar_thinkern = 0.75 * \interline;
114 barthick_thick = 0.5* \interline;
115 barthick_score = 0.13333* \interline;
116 barthick_thin = 0.1*\interline;
117
118 %}
119
120 bar_kern = 3.0 * \staffline;
121 bar_thinkern = 3.0 * \staffline;
122 barthick_thick = 6.0* \staffline;
123 barthick_thin = 1.6*\staffline;
124 barthick_score = 1.6*\staffline;
125
126 tuplet_thick = 1.0*\staffline;
127 volta_thick = 1.6*\staffline;
128
129 % relative thickness of thin lines  1.6 : 1 : 0.8
130 stemthickness = 0.8*\staffline;
131 rulethickness = \staffline;
132
133
134 extender_height = 0.8*\staffline;
135
136 % Multi-measure rests
137 mmrest_x_minimum = 2.0*\staffheight;
138
139
140 % chop off this much when next to pp / ff sign.
141 crescendo_shorten = 4.0 * \interline;
142
143 % in internote.
144 restcollision_minimum_dist = 3.0;
145 restcollision_minimum_beamdist = 1.5;
146
147 % deprecated!
148 postBreakPadding = 0.0;
149
150 stemSpacingCorrection = 0.5*\interline;
151
152 \include "engraver.ly";
153
154
155