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 ;
37 % there are several ways to calculate the direction of a beam
39 % * MAJORITY : number count of up or down notes
40 % * MEAN : mean centre distance of all notes
41 % * MEDIAN : mean centre distance weighted per note
44 #'beam-dir-algorithm = #'majority %urg.
47 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ;
49 #'Clef_item::visibility-lambda = #postbreak-only-visibility
50 #'Key_item::visibility-lambda = #postbreak-only-visibility
51 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
53 % catch suspect beam slopes, set slope to zero if
54 % outer stem is lengthened more than
55 beam_lengthened = 0.2 * \interline;
56 % and slope is running away steeper than
57 beam_steep_slope = 0.2 / 1.0;
60 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
61 code(\interline / 5) by default.
64 % OSU: suggested gap = ss / 5;
65 slur_x_gap = \interline / 5.0;
66 slur_y_gap = 0.25 * \interline;
67 slur_y_free = 0.75 * \interline;
68 slur_x_minimum = 1.5 * \interline;
71 Like beams, slurs often aren't as steep as the notes they encompass.
72 This sets the amount of damping.
74 % slope damping: keep dy/dx < slur_slope_damping
75 slur_slope_damping = 0.3;
76 slur_interstaff_slope_damping = 0.6;
77 % height damping: keep h/dx < slur_height_damping
78 slur_height_damping = 0.4;
79 slur_interstaff_height_damping = 0.5;
80 % snap to stem if slur ends closer to stem than
81 slur_snap_to_stem = 1.75 * \interline;
82 slur_interstaff_snap_to_stem = 2.5 * \interline;
83 % maximum dy change allowed by snapping
84 slur_snap_max_slope_change = 0.5;
85 slur_interstaff_snap_max_slope_change = 0.5;
89 tie_x_minimum = \interline + \slur_x_minimum;
90 % OSU: tie gap == slur gap
91 tie_x_gap = \slur_x_gap;
92 tie_y_gap = 0.25 * \interline;
93 % length of a tie that's a staffspace high
94 tie_staffspace_length = 4.0 * \interline;
96 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
97 % slur_thickness = 1.8 * \stafflinethickness;
98 slur_thickness = 1.4 * \stafflinethickness;
101 Specifies the maximum height of slurs.
103 slur_height_limit = \staffheight;
107 Specifes the ratio of slur hight to slur width
108 to aim for. Default value is 0.3.
112 % try bit flatter slurs
114 slur_clip_ratio = 1.2;
115 slur_clip_height = 3.0 * \staffheight;
116 slur_clip_angle = 100.0;
117 slur_rc_factor = 2.4;
120 notewidth = (\quartwidth + \wholewidth) / 2.0;
122 gourlay_energybound = 100000.;
124 Maximum number of measures per line to try when using Gourlay
127 gourlay_maxmeasures = 10.;
130 %{ Ross. page 151 lists these values, but we think that thick lines
131 and kernings are too thick.
133 bar_kern = 0.5 * \interline;
134 bar_thinkern = 0.75 * \interline;
135 barthick_thick = 0.5* \interline;
136 barthick_score = 0.13333* \interline;
137 barthick_thin = 0.1*\interline;
141 bar_kern = 3.0 * \stafflinethickness;
142 bar_thinkern = 3.0 * \stafflinethickness;
143 barthick_thick = 6.0* \stafflinethickness;
144 barthick_thin = 1.6*\stafflinethickness;
145 barthick_score = 1.6*\stafflinethickness;
147 bracket_arch_thick = \interline / 3.0;
148 bracket_width = 2.0 * \interline;
149 bracket_thick = 2.0 * \stafflinethickness;
150 bracket_arch_height = 1.5 * \interline;
151 bracket_arch_width = \bracket_arch_height;
152 bracket_arch_angle = 50.0;
154 tuplet_spanner_gap = 2.0 * \interline;
155 tuplet_thick = 1.0*\stafflinethickness;
156 volta_thick = 1.6*\stafflinethickness;
157 volta_spanner_height = 2.0 *\interline;
159 % relative thickness of thin lines 1.6 : 1 : 0.8
160 stemthickness = 0.8*\stafflinethickness;
161 rulethickness = \stafflinethickness;
164 extender_height = 0.8*\stafflinethickness;
166 hyphen_thickness = 0.05*\font_normal;
167 hyphen_height = 0.2*\font_normal;
168 hyphen_minimum_length = 0.25*\font_normal;
170 % Multi-measure rests
171 mmrest_x_minimum = 1.4*\staffheight;
174 % chop off this much when next to pp / ff sign.
175 crescendo_shorten = 4.0 * \interline;
176 crescendo_thickness = \stafflinethickness;
177 crescendo_height = 0.666 * \interline;
180 restcollision_minimum_dist = 3.0;
181 restcollision_minimum_beamdist = 1.5;
184 % unit for note collision resolving
185 collision_note_width = \notewidth; %ugh.
188 postBreakPadding = 0.0;
190 % optical correction amount.
191 stemSpacingCorrection = 0.5*\interline;
195 relative strength of space following breakable columns (eg. prefatory matter)
197 breakable_column_space_strength = 2.0;
199 % space after inline clefs and such get this much stretched
200 decrease_nonmus_spacing_factor = 1.0 ;
203 space before musical columns (eg. taken by accidentals) get this much
204 stretched when they follow a musical column, in absence of grace notes.
206 0.0 means no extra space (accidentals are ignored)
208 musical_to_musical_left_spacing_factor = 0.4;
211 stretch space this much if there are grace notes before the column
213 before_grace_spacing_factor = 1.2;
216 If columns do not have spacing information set, set it to this much
218 loose_column_distance = 2.0 * \interline;
221 Relative cost of compressing (vs. stretching). Increasing this
222 will cause scores to be set looser
226 compression_energy_factor = 0.6;
228 % if stem is on middle line, choose this direction.
229 stem_default_neutral_direction = 1.0;
232 articulation_script_padding_default = 1.0;
234 % Backward compatibility -- has no function;
238 \include "engraver.ly";
241 #'margin-shape = #'()
245 #'Local_key_item::left-padding = #'0.2
246 #'Local_key_item::right-padding = #'0.4