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