2 % generic paper parameters
4 #'staff-height = \staffheight;
6 paperfile = \papersize + ".ly";
11 staffspace = \staffheight / 4.0;
12 stafflinethickness = \staffspace / 10.0;
15 interline = \staffspace;
18 % urg, need grace_ versions of these too?
19 beam_thickness = 0.52 * (\staffspace - \stafflinethickness);
21 #'beam-thickness = \beam_thickness; %% UGR
24 interbeam = (2.0 * \staffspace + \stafflinethickness - \beam_thickness) / 2.0;
25 interbeam4 = (3.0 * \staffspace - \beam_thickness) / 3.0;
28 The space taken by a note is determined by the formula
30 arithmetic_multiplier * ( c + log2 (time) ))
32 where code(time) is the amount of time a note occupies. The value
33 of code(c) is chosen such that the smallest space within a measure is
34 arithmetic_basicspace. The smallest space is the one following the
35 shortest note in the measure. Typically arithmetic_basicspace is set
36 to the width of a quarter note head.
38 arithmetic_basicspace = 2.;
39 arithmetic_multiplier = 0.9 * \quartwidth ;
42 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ;
44 #'Clef_item::visibility-lambda = #begin-of-line-visible
45 #'Key_item::visibility-lambda = #begin-of-line-visible
46 #'Breathing_sign::visibility-lambda = #begin-of-line-invisible
48 % catch suspect beam slopes, set slope to zero if
49 % outer stem is lengthened more than
50 beam_lengthened = 0.2 * \staffspace;
51 % and slope is running away steeper than
52 beam_steep_slope = 0.2 / 1.0;
59 See Documentation/programmer/fonts.doc
61 % Height-limit (h_inf) = factor * staff_space
62 slur_height_limit_factor = 2.0;
63 slur_ratio = 1.0 / 3.0;
65 slur_thickness = 1.2 * \stafflinethickness;
67 slur_force_blowfit = 0.5;
72 Horizontal space between centre of notehead and slur.
74 % OSU: suggested gap = ss / 5;
75 slur_x_gap = \staffspace / 5.0;
76 slur_y_gap = 0.25 * \staffspace;
77 slur_y_free = 0.75 * \staffspace;
78 slur_x_minimum = 1.5 * \staffspace;
81 % The constants that define the valid areas for the middle control points
82 % Used in de_uglyfy. Bit empirical.
83 bezier_control1 = 1.5;
84 bezier_control2 = 0.8;
85 bezier_control3 = -2.0;
87 % URG: the magic constants for area asymmetry
89 bezier_pct_c3 = 0.000006;
90 bezier_pct_out_max = 0.8;
91 bezier_pct_in_max = 1.2;
92 bezier_area_steps = 1.0;
99 tie_height_limit_factor = \slur_height_limit_factor;
100 tie_ratio = \slur_ratio;
101 tie_thickness = \slur_thickness;
103 tie_x_minimum = \staffspace + \slur_x_minimum;
104 % OSU: tie gap == slur gap
105 tie_x_gap = \slur_x_gap;
106 tie_y_gap = 0.25 * \staffspace;
107 % length of a tie that's a staffspace high
108 tie_staffspace_length = 4.0 * \staffspace;
110 tie_staffline_clearance = 2.0 *\tie_thickness;
116 notewidth = (\quartwidth + \wholewidth) / 2.0;
118 gourlay_energybound = 100000.;
120 Maximum number of measures per line to try when using Gourlay
123 gourlay_maxmeasures = 10.;
126 line_kern = \staffspace;
128 %{ Ross. page 151 lists these values, but we think that thick lines
129 and kernings are too thick.
131 bar_kern = 0.5 * \staffspace;
132 bar_thinkern = 0.75 * \staffspace;
133 barthick_thick = 0.5* \staffspace;
134 barthick_score = 0.13333* \staffspace;
135 barthick_thin = 0.1*\staffspace;
139 bar_kern = 3.0 * \stafflinethickness;
140 bar_thinkern = 3.0 * \stafflinethickness;
141 barthick_thick = 6.0* \stafflinethickness;
142 barthick_thin = 1.6*\stafflinethickness;
143 barthick_score = 1.6*\stafflinethickness;
145 bracket_arch_thick = \staffspace / 4.0;
146 bracket_width = 2.0 * \staffspace;
147 bracket_thick = \staffspace / 4.0;
148 bracket_arch_height = 1.5 * \staffspace;
149 bracket_arch_width = \bracket_arch_height;
150 bracket_arch_angle = 50.0;
152 tuplet_spanner_gap = 2.0 * \staffspace;
153 tuplet_thick = 1.0*\stafflinethickness;
154 volta_thick = 1.6*\stafflinethickness;
155 volta_spanner_height = 2.0 *\staffspace;
157 % relative thickness of thin lines 1.6 : 1 : 0.8
158 stemthickness = 0.8*\stafflinethickness;
159 rulethickness = \stafflinethickness;
162 extender_height = 0.8*\stafflinethickness;
164 hyphen_thickness = 0.05*\font_normal;
165 hyphen_height = 0.2*\font_normal;
166 hyphen_minimum_length = 0.25*\font_normal;
168 % Multi-measure rests
169 multi_measure_rest_x_minimum = 2.5*\staffheight;
170 multi_measure_rest_padding = 2.0 *\staffspace;
171 multi_measure_rest_expand_limit = 10.0;
173 % chop off this much when next to pp / ff sign.
174 crescendo_shorten = 4.0 * \staffspace;
175 crescendo_thickness = \stafflinethickness;
176 crescendo_height = 0.666 * \staffspace;
177 crescendo_dash_thickness = 1.2*\stafflinethickness;
178 crescendo_dash = 4.0*\staffspace;
181 restcollision_minimum_dist = 3.0;
182 restcollision_minimum_beamdist = 1.5;
185 % unit for note collision resolving
186 collision_note_width = \notewidth; %ugh.
189 postBreakPadding = 0.0;
191 % optical correction amount.
192 stemSpacingCorrection = 0.5*\staffspace;
196 relative strength of space following breakable columns (eg. prefatory matter)
198 breakable_column_space_strength = 2.0;
200 % space after inline clefs and such get this much stretched
201 decrease_nonmus_spacing_factor = 1.0 ;
204 space before musical columns (eg. taken by accidentals) get this much
205 stretched when they follow a musical column, in absence of grace notes.
207 0.0 means no extra space (accidentals are ignored)
209 musical_to_musical_left_spacing_factor = 0.4;
212 stretch space this much if there are grace notes before the column
214 before_grace_spacing_factor = 1.2;
217 If columns do not have spacing information set, set it to this much
219 loose_column_distance = 2.0 * \staffspace;
222 Relative cost of compressing (vs. stretching). Increasing this
223 will cause scores to be set looser
227 compression_energy_factor = 0.6;
229 % if stem is on middle line, choose this direction.
230 stem_default_neutral_direction = 1.0;
233 articulation_script_padding_default = 1.0;
235 % Backward compatibility -- has no function;
239 \include "engraver.ly";
242 #'margin-shape = #'()
246 #'Local_key_item::left-padding = #'0.2
247 #'Local_key_item::right-padding = #'0.4
249 #'Staff_symbol::staff-space = \staffspace ;
250 #'Staff_symbol::line-count = #5