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