]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
release: 1.3.31
[lilypond.git] / ly / params.ly
1 % params.ly
2 % generic paper parameters
3
4 #'staff-height = \staffheight;
5
6 paperfile = \papersize + ".ly";
7 % paperfile = "a4.ly";
8 \include \paperfile;
9 \include "paper.ly";
10
11 staffspace = \staffheight / 4.0;
12 stafflinethickness = \staffspace / 10.0;
13
14 % deprecated
15 interline = \staffspace;
16
17
18 % urg, need grace_ versions of these too?
19 beam_thickness = 0.52 * (\staffspace - \stafflinethickness);
20
21 #'beam-thickness = \beam_thickness;  %% UGR
22
23
24 interbeam = (2.0 * \staffspace + \stafflinethickness - \beam_thickness) / 2.0;
25 interbeam4 = (3.0 * \staffspace - \beam_thickness) / 3.0;
26
27 %{
28 The space taken by a note is determined by the formula 
29
30 arithmetic_multiplier * ( c + log2 (time) ))
31
32 where code(time) is the amount of time a note occupies.  The value
33 of code(c) is chosen such that the smallest space within a measure is
34 arithmetic_basicspace.  The smallest space is the one following the
35 shortest note in the measure.  Typically arithmetic_basicspace is set
36 to the width of a quarter note head.
37 %}
38 arithmetic_basicspace = 2.;
39 arithmetic_multiplier = 0.9 * \quartwidth ;
40
41
42 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ; 
43
44 #'Clef_item::visibility-lambda = #begin-of-line-visible
45 #'Key_item::visibility-lambda = #begin-of-line-visible
46 #'Breathing_sign::visibility-lambda = #begin-of-line-invisible
47
48 % catch suspect beam slopes, set slope to zero if
49 % outer stem is lengthened more than
50 beam_lengthened = 0.2 * \staffspace;
51 % and slope is running away steeper than
52 beam_steep_slope = 0.2 / 1.0;
53
54
55
56 %{
57   Slur parameters.
58   
59   See Documentation/programmer/fonts.doc
60 %}
61 % Height-limit (h_inf) = factor * staff_space
62 slur_height_limit_factor = 2.0;
63 slur_ratio = 1.0 / 3.0;
64
65 slur_thickness = 1.2 * \stafflinethickness;
66
67
68 %{
69 Horizontal space between centre of notehead and slur.
70 %}
71 % OSU: suggested gap = ss / 5;
72 slur_x_gap = \staffspace / 5.0;
73 slur_y_gap = 0.25 * \staffspace;
74 slur_y_free = 0.75 * \staffspace;
75 slur_x_minimum = 1.5 * \staffspace;
76
77
78 bezier_asymmetry = 1.0;
79 bezier_beautiful = 2.0;
80
81 % The constants that define the valid areas for the middle control points
82 % Used in de_uglyfy.  Bit empirical.
83 bezier_control1 = 1.5;
84 bezier_control2 = 0.8;
85 bezier_control3 = -2.0;
86
87 % URG: the magic constants for area asymmetry
88 bezier_pct_c0 = -0.2;
89 bezier_pct_c3 = 0.000006;
90 bezier_pct_out_max = 0.8;
91 bezier_pct_in_max = 1.2;
92 bezier_area_steps = 1.0;
93
94 slur_force_blowfit = 0.5;
95 slur_beautiful = 0.5;
96
97
98 %{
99   Tie parameters
100 %}
101
102 tie_height_limit_factor = \slur_height_limit_factor;
103 tie_ratio = \slur_ratio;
104 tie_thickness = \slur_thickness;
105
106 tie_x_minimum = \staffspace + \slur_x_minimum;
107 % OSU: tie gap == slur gap
108 tie_x_gap = \slur_x_gap;
109 tie_y_gap = 0.25 * \staffspace;
110 % length of a tie that's a staffspace high
111 tie_staffspace_length = 4.0 * \staffspace;
112
113 tie_staffline_clearance = 2.0 *\tie_thickness;
114
115
116
117
118 % ugh
119 notewidth = (\quartwidth + \wholewidth) / 2.0;
120
121 gourlay_energybound = 100000.;
122 %{
123 Maximum number of measures per line to try when using Gourlay
124 method. 
125 %}
126 gourlay_maxmeasures = 10.;
127
128
129 %{ Ross. page 151 lists these values, but we think that thick lines
130 and kernings are too thick.
131
132 bar_kern = 0.5 * \staffspace;
133 bar_thinkern = 0.75 * \staffspace;
134 barthick_thick = 0.5* \staffspace;
135 barthick_score = 0.13333* \staffspace;
136 barthick_thin = 0.1*\staffspace;
137
138 %}
139
140 bar_kern = 3.0 * \stafflinethickness;
141 bar_thinkern = 3.0 * \stafflinethickness;
142 barthick_thick = 6.0* \stafflinethickness;
143 barthick_thin = 1.6*\stafflinethickness;
144 barthick_score = 1.6*\stafflinethickness;
145
146 bracket_arch_thick = \staffspace / 3.0;
147 bracket_width = 2.0 * \staffspace;
148 bracket_thick = 2.0 * \stafflinethickness;
149 bracket_arch_height = 1.5 * \staffspace;
150 bracket_arch_width = \bracket_arch_height;
151 bracket_arch_angle = 50.0;
152
153 tuplet_spanner_gap = 2.0 * \staffspace;
154 tuplet_thick = 1.0*\stafflinethickness;
155 volta_thick = 1.6*\stafflinethickness;
156 volta_spanner_height = 2.0 *\staffspace;
157
158 % relative thickness of thin lines  1.6 : 1 : 0.8
159 stemthickness = 0.8*\stafflinethickness;
160 rulethickness = \stafflinethickness;
161
162
163 extender_height = 0.8*\stafflinethickness;
164
165 hyphen_thickness = 0.05*\font_normal;
166 hyphen_height = 0.2*\font_normal;
167 hyphen_minimum_length = 0.25*\font_normal;
168
169 % Multi-measure rests
170 multi_measure_rest_x_minimum = 2.5*\staffheight;
171 multi_measure_rest_padding = 2.0 *\staffspace;
172 multi_measure_rest_expand_limit = 10.0;
173
174 % chop off this much when next to pp / ff sign.
175 crescendo_shorten = 4.0 * \staffspace;
176 crescendo_thickness   = \stafflinethickness;
177 crescendo_height = 0.666 * \staffspace;
178 crescendo_dash_thickness = 1.2*\stafflinethickness;
179 crescendo_dash = 4.0*\staffspace;
180
181 % in internote.
182 restcollision_minimum_dist = 3.0;
183 restcollision_minimum_beamdist = 1.5;
184
185
186 % unit for note collision resolving
187 collision_note_width = \notewidth;      %ugh.
188
189 % deprecated!
190 postBreakPadding = 0.0;
191
192 % optical correction amount.
193 stemSpacingCorrection = 0.5*\staffspace;
194
195
196 %{
197  relative strength of space following breakable columns (eg. prefatory matter)
198  %}
199 breakable_column_space_strength = 2.0; 
200
201 % space after inline clefs and such get this much stretched
202 decrease_nonmus_spacing_factor = 1.0 ;
203
204 %{
205  space before musical columns (eg. taken by accidentals) get this much
206  stretched when they follow a musical column, in absence of grace notes.
207
208  0.0 means no extra space (accidentals are ignored)
209 %}
210 musical_to_musical_left_spacing_factor = 0.4;
211
212 %{
213  stretch space this much if there are grace notes before the column
214 %}
215 before_grace_spacing_factor = 1.2;
216
217 %{
218 If columns do not have spacing information set, set it to this much
219 %}
220 loose_column_distance = 2.0 * \staffspace;
221
222 %{
223 Relative cost of compressing (vs. stretching).  Increasing this
224 will cause scores to be set looser
225 .
226 %}
227
228 compression_energy_factor = 0.6;
229
230 % if stem is on middle line, choose this direction.
231 stem_default_neutral_direction = 1.0;
232
233 % in staffspace
234 articulation_script_padding_default = 1.0;
235
236 % Backward compatibility -- has no function; 
237 Gourlay = 0.0;
238 Wordwrap =0.0;
239
240 \include "engraver.ly";
241
242
243 #'margin-shape = #'()
244
245
246
247 #'Local_key_item::left-padding = #'0.2
248 #'Local_key_item::right-padding = #'0.4
249
250 #'Staff_symbol::staff-space = \staffspace ;
251 #'Staff_symbol::line-count = #5
252