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