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 interbeam
4 = (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;
69 Horizontal space between centre of notehead and slur.
71 % OSU: suggested gap = ss / 5;
72 slur_x_gap = \staffspace / 5.0;
73 slur_y_gap = 0.25 * \staffspace;
74 slur_y_free = 0.75 * \staffspace;
75 slur_x_minimum = 1.5 * \staffspace;
78 bezier_asymmetry = 1.0;
79 bezier_beautiful = 2.0;
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;
94 slur_force_blowfit = 0.5;
102 tie_height_limit_factor = \slur_height_limit_factor;
103 tie_ratio = \slur_ratio;
104 tie_thickness = \slur_thickness;
106 tie_x_minimum = \staffspace + \slur_x_minimum;
107 % OSU: tie gap == slur gap
108 tie_x_gap = \slur_x_gap;
109 tie_y_gap = 0.25 * \staffspace;
110 % length of a tie that's a staffspace high
111 tie_staffspace_length = 4.0 * \staffspace;
113 tie_staffline_clearance = 2.0 *\tie_thickness;
119 notewidth = (\quartwidth + \wholewidth) / 2.0;
121 gourlay_energybound = 100000.;
123 Maximum number of measures per line to try when using Gourlay
126 gourlay_maxmeasures = 10.;
129 %{ Ross. page 151 lists these values, but we think that thick lines
130 and kernings are too thick.
132 bar_kern = 0.5 * \staffspace;
133 bar_thinkern = 0.75 * \staffspace;
134 barthick_thick = 0.5* \staffspace;
135 barthick_score = 0.13333* \staffspace;
136 barthick_thin = 0.1*\staffspace;
140 bar_kern = 3.0 * \stafflinethickness;
141 bar_thinkern = 3.0 * \stafflinethickness;
142 barthick_thick = 6.0* \stafflinethickness;
143 barthick_thin = 1.6*\stafflinethickness;
144 barthick_score = 1.6*\stafflinethickness;
146 bracket_arch_thick = \staffspace / 3.0;
147 bracket_width = 2.0 * \staffspace;
148 bracket_thick = 2.0 * \stafflinethickness;
149 bracket_arch_height = 1.5 * \staffspace;
150 bracket_arch_width = \bracket_arch_height;
151 bracket_arch_angle = 50.0;
153 tuplet_spanner_gap = 2.0 * \staffspace;
154 tuplet_thick = 1.0*\stafflinethickness;
155 volta_thick = 1.6*\stafflinethickness;
156 volta_spanner_height = 2.0 *\staffspace;
158 % relative thickness of thin lines 1.6 : 1 : 0.8
159 stemthickness = 0.8*\stafflinethickness;
160 rulethickness = \stafflinethickness;
163 extender_height = 0.8*\stafflinethickness;
165 hyphen_thickness = 0.05*\font_normal;
166 hyphen_height = 0.2*\font_normal;
167 hyphen_minimum_length = 0.25*\font_normal;
169 % Multi-measure rests
170 multi_measure_rest_x_minimum = 2.5*\staffheight;
171 multi_measure_rest_padding = 2.0 *\staffspace;
172 multi_measure_rest_expand_limit = 10.0;
174 % chop off this much when next to pp / ff sign.
175 crescendo_shorten = 4.0 * \staffspace;
176 crescendo_thickness = \stafflinethickness;
177 crescendo_height = 0.666 * \staffspace;
178 crescendo_dash_thickness = 1.2*\stafflinethickness;
179 crescendo_dash = 4.0*\staffspace;
182 restcollision_minimum_dist = 3.0;
183 restcollision_minimum_beamdist = 1.5;
186 % unit for note collision resolving
187 collision_note_width = \notewidth; %ugh.
190 postBreakPadding = 0.0;
192 % optical correction amount.
193 stemSpacingCorrection = 0.5*\staffspace;
197 relative strength of space following breakable columns (eg. prefatory matter)
199 breakable_column_space_strength = 2.0;
201 % space after inline clefs and such get this much stretched
202 decrease_nonmus_spacing_factor = 1.0 ;
205 space before musical columns (eg. taken by accidentals) get this much
206 stretched when they follow a musical column, in absence of grace notes.
208 0.0 means no extra space (accidentals are ignored)
210 musical_to_musical_left_spacing_factor = 0.4;
213 stretch space this much if there are grace notes before the column
215 before_grace_spacing_factor = 1.2;
218 If columns do not have spacing information set, set it to this much
220 loose_column_distance = 2.0 * \staffspace;
223 Relative cost of compressing (vs. stretching). Increasing this
224 will cause scores to be set looser
228 compression_energy_factor = 0.6;
230 % if stem is on middle line, choose this direction.
231 stem_default_neutral_direction = 1.0;
234 articulation_script_padding_default = 1.0;
236 % Backward compatibility -- has no function;
240 \include "engraver.ly";
243 #'margin-shape = #'()
247 #'Local_key_item::left-padding = #'0.2
248 #'Local_key_item::right-padding = #'0.4
250 #'Staff_symbol::staff-space = \staffspace ;
251 #'Staff_symbol::line-count = #5