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