]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
patch::: 1.3.32.jcn3: jcn3, weetjewat?
[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 slur_force_blowfit = 0.5;
68 slur_beautiful = 0.5;
69
70
71 %{
72 Horizontal space between centre of notehead and slur.
73 %}
74 % OSU: suggested gap = ss / 5;
75 slur_x_gap = \staffspace / 5.0;
76 slur_y_gap = 0.25 * \staffspace;
77 slur_y_free = 0.75 * \staffspace;
78 slur_x_minimum = 1.5 * \staffspace;
79
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
95 %{
96   Tie parameters
97 %}
98
99 tie_height_limit_factor = \slur_height_limit_factor;
100 tie_ratio = \slur_ratio;
101 tie_thickness = \slur_thickness;
102
103 tie_x_minimum = \staffspace + \slur_x_minimum;
104 % OSU: tie gap == slur gap
105 tie_x_gap = \slur_x_gap;
106 tie_y_gap = 0.25 * \staffspace;
107 % length of a tie that's a staffspace high
108 tie_staffspace_length = 4.0 * \staffspace;
109
110 tie_staffline_clearance = 2.0 *\tie_thickness;
111
112
113
114
115 % ugh
116 notewidth = (\quartwidth + \wholewidth) / 2.0;
117
118 gourlay_energybound = 100000.;
119 %{
120 Maximum number of measures per line to try when using Gourlay
121 method. 
122 %}
123 gourlay_maxmeasures = 10.;
124
125
126 line_kern = \staffspace;
127
128 %{ Ross. page 151 lists these values, but we think that thick lines
129 and kernings are too thick.
130
131 bar_kern = 0.5 * \staffspace;
132 bar_thinkern = 0.75 * \staffspace;
133 barthick_thick = 0.5* \staffspace;
134 barthick_score = 0.13333* \staffspace;
135 barthick_thin = 0.1*\staffspace;
136
137 %}
138
139 bar_kern = 3.0 * \stafflinethickness;
140 bar_thinkern = 3.0 * \stafflinethickness;
141 barthick_thick = 6.0* \stafflinethickness;
142 barthick_thin = 1.6*\stafflinethickness;
143 barthick_score = 1.6*\stafflinethickness;
144
145 bracket_arch_thick = \staffspace / 4.0;
146 bracket_width = 2.0 * \staffspace;
147 bracket_thick = \staffspace / 4.0;
148 bracket_arch_height = 1.5 * \staffspace;
149 bracket_arch_width = \bracket_arch_height;
150 bracket_arch_angle = 50.0;
151
152 tuplet_spanner_gap = 2.0 * \staffspace;
153 tuplet_thick = 1.0*\stafflinethickness;
154 volta_thick = 1.6*\stafflinethickness;
155 volta_spanner_height = 2.0 *\staffspace;
156
157 % relative thickness of thin lines  1.6 : 1 : 0.8
158 stemthickness = 0.8*\stafflinethickness;
159 rulethickness = \stafflinethickness;
160
161
162 extender_height = 0.8*\stafflinethickness;
163
164 hyphen_thickness = 0.05*\font_normal;
165 hyphen_height = 0.2*\font_normal;
166 hyphen_minimum_length = 0.25*\font_normal;
167
168 % Multi-measure rests
169 multi_measure_rest_x_minimum = 2.5*\staffheight;
170 multi_measure_rest_padding = 2.0 *\staffspace;
171 multi_measure_rest_expand_limit = 10.0;
172
173 % chop off this much when next to pp / ff sign.
174 crescendo_shorten = 4.0 * \staffspace;
175 crescendo_thickness   = \stafflinethickness;
176 crescendo_height = 0.666 * \staffspace;
177 crescendo_dash_thickness = 1.2*\stafflinethickness;
178 crescendo_dash = 4.0*\staffspace;
179
180 % in internote.
181 restcollision_minimum_dist = 3.0;
182 restcollision_minimum_beamdist = 1.5;
183
184
185 % unit for note collision resolving
186 collision_note_width = \notewidth;      %ugh.
187
188 % deprecated!
189 postBreakPadding = 0.0;
190
191 % optical correction amount.
192 stemSpacingCorrection = 0.5*\staffspace;
193
194
195 %{
196  relative strength of space following breakable columns (eg. prefatory matter)
197  %}
198 breakable_column_space_strength = 2.0; 
199
200 % space after inline clefs and such get this much stretched
201 decrease_nonmus_spacing_factor = 1.0 ;
202
203 %{
204  space before musical columns (eg. taken by accidentals) get this much
205  stretched when they follow a musical column, in absence of grace notes.
206
207  0.0 means no extra space (accidentals are ignored)
208 %}
209 musical_to_musical_left_spacing_factor = 0.4;
210
211 %{
212  stretch space this much if there are grace notes before the column
213 %}
214 before_grace_spacing_factor = 1.2;
215
216 %{
217 If columns do not have spacing information set, set it to this much
218 %}
219 loose_column_distance = 2.0 * \staffspace;
220
221 %{
222 Relative cost of compressing (vs. stretching).  Increasing this
223 will cause scores to be set looser
224 .
225 %}
226
227 compression_energy_factor = 0.6;
228
229 % if stem is on middle line, choose this direction.
230 stem_default_neutral_direction = 1.0;
231
232 % in staffspace
233 articulation_script_padding_default = 1.0;
234
235 % Backward compatibility -- has no function; 
236 Gourlay = 0.0;
237 Wordwrap =0.0;
238
239 \include "engraver.ly";
240
241
242 #'margin-shape = #'()
243
244
245
246 #'Local_key_item::left-padding = #'0.2
247 #'Local_key_item::right-padding = #'0.4
248
249 #'Staff_symbol::staff-space = \staffspace ;
250 #'Staff_symbol::line-count = #5
251