]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
patch::: 1.3.26.jcn1
[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 = #postbreak-only-visibility
45 #'Key_item::visibility-lambda = #postbreak-only-visibility
46 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
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 dit(code(slur_x_gap)) Horizontal space between note and slur.  Set to
56 code(\staffspace / 5) by default.  
57
58 %}
59 % OSU: suggested gap = ss / 5;
60 slur_x_gap = \staffspace / 5.0;
61 slur_y_gap = 0.25 * \staffspace;
62 slur_y_free = 0.75 * \staffspace;
63 slur_x_minimum = 1.5 * \staffspace;
64
65 %{
66 Like beams, slurs often aren't as steep as the notes they encompass.
67 This sets the amount of damping.
68 %}
69 % slope damping: keep dy/dx < slur_slope_damping
70 slur_slope_damping = 0.3;
71 slur_interstaff_slope_damping = 0.6;
72 % height damping: keep h/dx < slur_height_damping
73 slur_height_damping = 0.4;
74 slur_interstaff_height_damping = 0.5;
75 % snap to stem if slur ends closer to stem than
76 slur_snap_to_stem = 1.75 * \staffspace;
77 slur_interstaff_snap_to_stem = 2.5 * \staffspace;
78 % maximum dy change allowed by snapping
79 slur_snap_max_slope_change = 0.5;
80 slur_interstaff_snap_max_slope_change = 0.5;
81 slur_thickness = 1.2 * \stafflinethickness;
82
83
84
85 tie_x_minimum = \staffspace + \slur_x_minimum;
86 % OSU: tie gap == slur gap
87 tie_x_gap = \slur_x_gap;
88 tie_y_gap = 0.25 * \staffspace;
89 % length of a tie that's a staffspace high
90 tie_staffspace_length = 4.0 * \staffspace;
91
92 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
93
94 % used to be 1.4 .
95 tie_thickness = 1.2 * \stafflinethickness;
96 tie_staffline_clearance = 2.0 *\tie_thickness;
97
98 %{
99  Specifies the maximum height of slurs.
100 %}
101 slur_height_limit = \staffheight;
102
103
104 %{
105 Specifes the ratio of slur hight to slur width
106 to aim for.  Default value is 0.3. 
107 %}
108 % slur_ratio = 0.3;
109 % try bit flatter slurs
110 slur_ratio = 0.25;
111 slur_clip_ratio = 1.2;
112 slur_clip_height = 3.0 * \staffheight;
113 slur_clip_angle = 100.0;
114 slur_rc_factor = 2.4;
115
116 % ugh
117 notewidth = (\quartwidth + \wholewidth) / 2.0;
118
119 gourlay_energybound = 100000.;
120 %{
121 Maximum number of measures per line to try when using Gourlay
122 method. 
123 %}
124 gourlay_maxmeasures = 10.;
125
126
127 %{ Ross. page 151 lists these values, but we think that thick lines
128 and kernings are too thick.
129
130 bar_kern = 0.5 * \staffspace;
131 bar_thinkern = 0.75 * \staffspace;
132 barthick_thick = 0.5* \staffspace;
133 barthick_score = 0.13333* \staffspace;
134 barthick_thin = 0.1*\staffspace;
135
136 %}
137
138 bar_kern = 3.0 * \stafflinethickness;
139 bar_thinkern = 3.0 * \stafflinethickness;
140 barthick_thick = 6.0* \stafflinethickness;
141 barthick_thin = 1.6*\stafflinethickness;
142 barthick_score = 1.6*\stafflinethickness;
143
144 bracket_arch_thick = \staffspace / 3.0;
145 bracket_width = 2.0 * \staffspace;
146 bracket_thick = 2.0 * \stafflinethickness;
147 bracket_arch_height = 1.5 * \staffspace;
148 bracket_arch_width = \bracket_arch_height;
149 bracket_arch_angle = 50.0;
150
151 tuplet_spanner_gap = 2.0 * \staffspace;
152 tuplet_thick = 1.0*\stafflinethickness;
153 volta_thick = 1.6*\stafflinethickness;
154 volta_spanner_height = 2.0 *\staffspace;
155
156 % relative thickness of thin lines  1.6 : 1 : 0.8
157 stemthickness = 0.8*\stafflinethickness;
158 rulethickness = \stafflinethickness;
159
160
161 extender_height = 0.8*\stafflinethickness;
162
163 hyphen_thickness = 0.05*\font_normal;
164 hyphen_height = 0.2*\font_normal;
165 hyphen_minimum_length = 0.25*\font_normal;
166
167 % Multi-measure rests
168 multi_measure_rest_x_minimum = 2.5*\staffheight;
169 multi_measure_rest_padding = 2.0 *\staffspace;
170 multi_measure_rest_expand_limit = 10.0;
171
172 % chop off this much when next to pp / ff sign.
173 crescendo_shorten = 4.0 * \staffspace;
174 crescendo_thickness   = \stafflinethickness;
175 crescendo_height = 0.666 * \staffspace;
176
177 % in internote.
178 restcollision_minimum_dist = 3.0;
179 restcollision_minimum_beamdist = 1.5;
180
181
182 % unit for note collision resolving
183 collision_note_width = \notewidth;      %ugh.
184
185 % deprecated!
186 postBreakPadding = 0.0;
187
188 % optical correction amount.
189 stemSpacingCorrection = 0.5*\staffspace;
190
191
192 %{
193  relative strength of space following breakable columns (eg. prefatory matter)
194  %}
195 breakable_column_space_strength = 2.0; 
196
197 % space after inline clefs and such get this much stretched
198 decrease_nonmus_spacing_factor = 1.0 ;
199
200 %{
201  space before musical columns (eg. taken by accidentals) get this much
202  stretched when they follow a musical column, in absence of grace notes.
203
204  0.0 means no extra space (accidentals are ignored)
205 %}
206 musical_to_musical_left_spacing_factor = 0.4;
207
208 %{
209  stretch space this much if there are grace notes before the column
210 %}
211 before_grace_spacing_factor = 1.2;
212
213 %{
214 If columns do not have spacing information set, set it to this much
215 %}
216 loose_column_distance = 2.0 * \staffspace;
217
218 %{
219 Relative cost of compressing (vs. stretching).  Increasing this
220 will cause scores to be set looser
221 .
222 %}
223
224 compression_energy_factor = 0.6;
225
226 % if stem is on middle line, choose this direction.
227 stem_default_neutral_direction = 1.0;
228
229 % in staffspace
230 articulation_script_padding_default = 1.0;
231
232 % Backward compatibility -- has no function; 
233 Gourlay = 0.0;
234 Wordwrap =0.0;
235
236 \include "engraver.ly";
237
238
239 #'margin-shape = #'()
240
241
242
243 #'Local_key_item::left-padding = #'0.2
244 #'Local_key_item::right-padding = #'0.4
245
246 #'Staff_symbol::staff-space = \staffspace ;
247 #'Staff_symbol::line-count = #5
248