2 % generic paper parameters
4 paperfile = \papersize + ".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...)
90 slur_thickness = 1.2 * \stafflinethickness;
91 tie_thickness = 1.2 * \stafflinethickness;
94 Specifies the maximum height of slurs.
96 slur_height_limit = \staffheight;
100 Specifes the ratio of slur hight to slur width
101 to aim for. Default value is 0.3.
105 % try bit flatter slurs
107 slur_clip_ratio = 1.2;
108 slur_clip_height = 3.0 * \staffheight;
109 slur_clip_angle = 100.0;
110 slur_rc_factor = 2.4;
113 notewidth = (\quartwidth + \wholewidth) / 2.0;
115 gourlay_energybound = 100000.;
117 Maximum number of measures per line to try when using Gourlay
120 gourlay_maxmeasures = 10.;
123 %{ Ross. page 151 lists these values, but we think that thick lines
124 and kernings are too thick.
126 bar_kern = 0.5 * \interline;
127 bar_thinkern = 0.75 * \interline;
128 barthick_thick = 0.5* \interline;
129 barthick_score = 0.13333* \interline;
130 barthick_thin = 0.1*\interline;
134 bar_kern = 3.0 * \stafflinethickness;
135 bar_thinkern = 3.0 * \stafflinethickness;
136 barthick_thick = 6.0* \stafflinethickness;
137 barthick_thin = 1.6*\stafflinethickness;
138 barthick_score = 1.6*\stafflinethickness;
140 bracket_arch_thick = \interline / 3.0;
141 bracket_width = 2.0 * \interline;
142 bracket_thick = 2.0 * \stafflinethickness;
143 bracket_arch_height = 1.5 * \interline;
144 bracket_arch_width = \bracket_arch_height;
145 bracket_arch_angle = 50.0;
147 tuplet_spanner_gap = 2.0 * \interline;
148 tuplet_thick = 1.0*\stafflinethickness;
149 volta_thick = 1.6*\stafflinethickness;
150 volta_spanner_height = 2.0 *\interline;
152 % relative thickness of thin lines 1.6 : 1 : 0.8
153 stemthickness = 0.8*\stafflinethickness;
154 rulethickness = \stafflinethickness;
157 extender_height = 0.8*\stafflinethickness;
159 hyphen_thickness = 0.05*\font_normal;
160 hyphen_height = 0.2*\font_normal;
161 hyphen_minimum_length = 0.25*\font_normal;
163 % Multi-measure rests
164 multi_measure_rest_x_minimum = 2.5*\staffheight;
165 multi_measure_rest_padding = 2.0 *\interline;
166 multi_measure_rest_expand_limit = 10.0;
168 % chop off this much when next to pp / ff sign.
169 crescendo_shorten = 4.0 * \interline;
170 crescendo_thickness = \stafflinethickness;
171 crescendo_height = 0.666 * \interline;
174 restcollision_minimum_dist = 3.0;
175 restcollision_minimum_beamdist = 1.5;
178 % unit for note collision resolving
179 collision_note_width = \notewidth; %ugh.
182 postBreakPadding = 0.0;
184 % optical correction amount.
185 stemSpacingCorrection = 0.5*\interline;
189 relative strength of space following breakable columns (eg. prefatory matter)
191 breakable_column_space_strength = 2.0;
193 % space after inline clefs and such get this much stretched
194 decrease_nonmus_spacing_factor = 1.0 ;
197 space before musical columns (eg. taken by accidentals) get this much
198 stretched when they follow a musical column, in absence of grace notes.
200 0.0 means no extra space (accidentals are ignored)
202 musical_to_musical_left_spacing_factor = 0.4;
205 stretch space this much if there are grace notes before the column
207 before_grace_spacing_factor = 1.2;
210 If columns do not have spacing information set, set it to this much
212 loose_column_distance = 2.0 * \interline;
215 Relative cost of compressing (vs. stretching). Increasing this
216 will cause scores to be set looser
220 compression_energy_factor = 0.6;
222 % if stem is on middle line, choose this direction.
223 stem_default_neutral_direction = 1.0;
226 articulation_script_padding_default = 1.0;
228 % Backward compatibility -- has no function;
232 \include "engraver.ly";
235 #'margin-shape = #'()
239 #'Local_key_item::left-padding = #'0.2
240 #'Local_key_item::right-padding = #'0.4
242 #'Staff_symbol::staff-space = \interline ;
243 #'Staff_symbol::line-count = #5