2 % generic paper parameters
4 #'staff-height = \staffheight;
6 paperfile = \papersize + ".ly";
11 interline = \staffheight / 4.0;
14 stafflinethickness = \interline / 10.0;
16 % urg, need grace_ versions of these too?
17 beam_thickness = 0.52 * (\interline - \stafflinethickness);
19 #'beam-thickness = \beam_thickness; %% UGR
22 interbeam = (2.0 * \interline + \stafflinethickness - \beam_thickness) / 2.0;
23 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
26 The space taken by a note is determined by the formula
28 arithmetic_multiplier * ( c + log2 (time) ))
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.
36 arithmetic_basicspace = 2.;
37 arithmetic_multiplier = 0.9 * \quartwidth ;
40 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ;
42 #'Clef_item::visibility-lambda = #postbreak-only-visibility
43 #'Key_item::visibility-lambda = #postbreak-only-visibility
44 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
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;
53 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
54 code(\interline / 5) by default.
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;
64 Like beams, slurs often aren't as steep as the notes they encompass.
65 This sets the amount of damping.
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;
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;
90 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
93 tie_thickness = 1.2 * \stafflinethickness;
94 tie_staffline_clearance = 2.0 *\tie_thickness;
97 Specifies the maximum height of slurs.
99 slur_height_limit = \staffheight;
103 Specifes the ratio of slur hight to slur width
104 to aim for. Default value is 0.3.
107 % try bit flatter slurs
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;
115 notewidth = (\quartwidth + \wholewidth) / 2.0;
117 gourlay_energybound = 100000.;
119 Maximum number of measures per line to try when using Gourlay
122 gourlay_maxmeasures = 10.;
125 %{ Ross. page 151 lists these values, but we think that thick lines
126 and kernings are too thick.
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;
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;
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;
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;
154 % relative thickness of thin lines 1.6 : 1 : 0.8
155 stemthickness = 0.8*\stafflinethickness;
156 rulethickness = \stafflinethickness;
159 extender_height = 0.8*\stafflinethickness;
161 hyphen_thickness = 0.05*\font_normal;
162 hyphen_height = 0.2*\font_normal;
163 hyphen_minimum_length = 0.25*\font_normal;
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;
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;
176 restcollision_minimum_dist = 3.0;
177 restcollision_minimum_beamdist = 1.5;
180 % unit for note collision resolving
181 collision_note_width = \notewidth; %ugh.
184 postBreakPadding = 0.0;
186 % optical correction amount.
187 stemSpacingCorrection = 0.5*\interline;
191 relative strength of space following breakable columns (eg. prefatory matter)
193 breakable_column_space_strength = 2.0;
195 % space after inline clefs and such get this much stretched
196 decrease_nonmus_spacing_factor = 1.0 ;
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.
202 0.0 means no extra space (accidentals are ignored)
204 musical_to_musical_left_spacing_factor = 0.4;
207 stretch space this much if there are grace notes before the column
209 before_grace_spacing_factor = 1.2;
212 If columns do not have spacing information set, set it to this much
214 loose_column_distance = 2.0 * \interline;
217 Relative cost of compressing (vs. stretching). Increasing this
218 will cause scores to be set looser
222 compression_energy_factor = 0.6;
224 % if stem is on middle line, choose this direction.
225 stem_default_neutral_direction = 1.0;
228 articulation_script_padding_default = 1.0;
230 % Backward compatibility -- has no function;
234 \include "engraver.ly";
237 #'margin-shape = #'()
241 #'Local_key_item::left-padding = #'0.2
242 #'Local_key_item::right-padding = #'0.4
244 #'Staff_symbol::staff-space = \interline ;
245 #'Staff_symbol::line-count = #5