lilypond-1.3.16
[lilypond.git] / ly / params.ly
blobdd2e7f1fcc00e995f93c73a8d114593a7cbe50ea
1 % params.ly
2 % generic paper parameters
4 paperfile = \papersize + ".ly";
5 % paperfile = "a4.ly";
6 \include \paperfile;
7 \include "paper.ly";
9 interline = \staffheight / 4.0;
12 stafflinethickness = \interline / 10.0;
14 % urg, need grace_ versions of these too?
15 beam_thickness = 0.52 * (\interline - \stafflinethickness);
17 #'beam-thickness = \beam_thickness; %% UGR
20 interbeam = (2.0 * \interline + \stafflinethickness - \beam_thickness) / 2.0;
21 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
24 The space taken by a note is determined by the formula
26 arithmetic_multiplier * ( c + log2 (time) ))
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.
34 arithmetic_basicspace = 2.;
35 arithmetic_multiplier = 0.9 * \quartwidth ;
38 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ;
40 #'Clef_item::visibility-lambda = #postbreak-only-visibility
41 #'Key_item::visibility-lambda = #postbreak-only-visibility
42 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
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;
51 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
52 code(\interline / 5) by default.
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;
62 Like beams, slurs often aren't as steep as the notes they encompass.
63 This sets the amount of damping.
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;
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;
87 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
88 % slur_thickness = 1.8 * \stafflinethickness;
89 slur_thickness = 1.4 * \stafflinethickness;
92 Specifies the maximum height of slurs.
94 slur_height_limit = \staffheight;
98 Specifes the ratio of slur hight to slur width
99 to aim for. Default value is 0.3.
102 % slur_ratio = 0.3;
103 % try bit flatter slurs
104 slur_ratio = 0.25;
105 slur_clip_ratio = 1.2;
106 slur_clip_height = 3.0 * \staffheight;
107 slur_clip_angle = 100.0;
108 slur_rc_factor = 2.4;
110 % ugh
111 notewidth = (\quartwidth + \wholewidth) / 2.0;
113 gourlay_energybound = 100000.;
115 Maximum number of measures per line to try when using Gourlay
116 method.
118 gourlay_maxmeasures = 10.;
121 %{ Ross. page 151 lists these values, but we think that thick lines
122 and kernings are too thick.
124 bar_kern = 0.5 * \interline;
125 bar_thinkern = 0.75 * \interline;
126 barthick_thick = 0.5* \interline;
127 barthick_score = 0.13333* \interline;
128 barthick_thin = 0.1*\interline;
132 bar_kern = 3.0 * \stafflinethickness;
133 bar_thinkern = 3.0 * \stafflinethickness;
134 barthick_thick = 6.0* \stafflinethickness;
135 barthick_thin = 1.6*\stafflinethickness;
136 barthick_score = 1.6*\stafflinethickness;
138 bracket_arch_thick = \interline / 3.0;
139 bracket_width = 2.0 * \interline;
140 bracket_thick = 2.0 * \stafflinethickness;
141 bracket_arch_height = 1.5 * \interline;
142 bracket_arch_width = \bracket_arch_height;
143 bracket_arch_angle = 50.0;
145 tuplet_spanner_gap = 2.0 * \interline;
146 tuplet_thick = 1.0*\stafflinethickness;
147 volta_thick = 1.6*\stafflinethickness;
148 volta_spanner_height = 2.0 *\interline;
150 % relative thickness of thin lines 1.6 : 1 : 0.8
151 stemthickness = 0.8*\stafflinethickness;
152 rulethickness = \stafflinethickness;
155 extender_height = 0.8*\stafflinethickness;
157 hyphen_thickness = 0.05*\font_normal;
158 hyphen_height = 0.2*\font_normal;
159 hyphen_minimum_length = 0.25*\font_normal;
161 % Multi-measure rests
162 mmrest_x_minimum = 1.4*\staffheight;
165 % chop off this much when next to pp / ff sign.
166 crescendo_shorten = 4.0 * \interline;
167 crescendo_thickness = \stafflinethickness;
168 crescendo_height = 0.666 * \interline;
170 % in internote.
171 restcollision_minimum_dist = 3.0;
172 restcollision_minimum_beamdist = 1.5;
175 % unit for note collision resolving
176 collision_note_width = \notewidth; %ugh.
178 % deprecated!
179 postBreakPadding = 0.0;
181 % optical correction amount.
182 stemSpacingCorrection = 0.5*\interline;
186 relative strength of space following breakable columns (eg. prefatory matter)
188 breakable_column_space_strength = 2.0;
190 % space after inline clefs and such get this much stretched
191 decrease_nonmus_spacing_factor = 1.0 ;
194 space before musical columns (eg. taken by accidentals) get this much
195 stretched when they follow a musical column, in absence of grace notes.
197 0.0 means no extra space (accidentals are ignored)
199 musical_to_musical_left_spacing_factor = 0.4;
202 stretch space this much if there are grace notes before the column
204 before_grace_spacing_factor = 1.2;
207 If columns do not have spacing information set, set it to this much
209 loose_column_distance = 2.0 * \interline;
212 Relative cost of compressing (vs. stretching). Increasing this
213 will cause scores to be set looser
217 compression_energy_factor = 0.6;
219 % if stem is on middle line, choose this direction.
220 stem_default_neutral_direction = 1.0;
222 % in interline
223 articulation_script_padding_default = 1.0;
225 % Backward compatibility -- has no function;
226 Gourlay = 0.0;
227 Wordwrap =0.0;
229 \include "engraver.ly";
232 #'margin-shape = #'()
236 #'Local_key_item::left-padding = #'0.2
237 #'Local_key_item::right-padding = #'0.4
239 #'Staff_symbol::staff-space = \interline ;
240 #'Staff_symbol::line-count = #5