2 % generic paper parameters
4 %%paperfile = \papersize + ".ly";
5 %%% paperfile = "a4.ly";
10 %%\include "paper.ly";
11 linewidth = 60.0\char;
12 textheight = 60.0\char;
15 staffspace = (\staffheight - 1.0 ) / 4.0;
16 stafflinethickness = \staffspace / 2.0;
19 The space taken by a note is determined by the formula
21 arithmetic_multiplier * ( c + log2 (time) ))
23 where code(time) is the amount of time a note occupies. The value
24 of code(c) is chosen such that the smallest space within a measure is
25 arithmetic_basicspace. The smallest space is the one following the
26 shortest note in the measure. Typically arithmetic_basicspace is set
27 to the width of a quarter note head.
29 arithmetic_basicspace = 2.;
30 arithmetic_multiplier = 0.9 * \quartwidth ;
33 % catch suspect beam slopes, set slope to zero if
34 % outer stem is lengthened more than
35 beam_lengthened = 0.2 * \staffspace;
36 % and slope is running away steeper than
37 beam_steep_slope = 0.2 / 1.0;
40 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
41 code(\staffspace / 5) by default.
44 % OSU: suggested gap = ss / 5;
45 slur_x_gap = \staffspace / 5.0;
46 slur_y_gap = 0.25 * \staffspace;
47 slur_y_free = 0.75 * \staffspace;
48 slur_x_minimum = 1.5 * \staffspace;
51 % use tangent controls or area asymmetry?
53 bezier_asymmetry = 1.0;
54 bezier_beautiful = 2.0;
56 % The constants that define the valid areas for the middle control points
57 % Used in de_uglyfy. Bit empirical.
58 bezier_control1 = 1.5;
59 bezier_control2 = 0.8;
60 bezier_control3 = -2.0;
62 % URG: the magic constants for area asymmetry
64 bezier_pct_c3 = 0.000006;
65 bezier_pct_out_max = 0.8;
66 bezier_pct_in_max = 1.2;
67 bezier_area_steps = 1.0;
69 bezier_before_blowfit = 0.5;
72 Like beams, slurs often aren't as steep as the notes they encompass.
73 This sets the amount of damping.
75 % slope damping: keep dy/dx < slur_slope_damping
76 slur_slope_damping = 0.3;
77 slur_interstaff_slope_damping = 0.6;
78 % height damping: keep h/dx < slur_height_damping
79 slur_height_damping = 0.4;
80 slur_interstaff_height_damping = 0.5;
81 % snap to stem if slur ends closer to stem than
82 slur_snap_to_stem = 1.75 * \staffspace;
83 slur_interstaff_snap_to_stem = 2.5 * \staffspace;
84 % maximum dy change allowed by snapping
85 slur_snap_max_slope_change = 0.5;
86 slur_interstaff_snap_max_slope_change = 0.5;
90 tie_x_minimum = \staffspace + \slur_x_minimum;
91 % OSU: tie gap == slur gap
92 tie_x_gap = \slur_x_gap;
93 tie_y_gap = 0.25 * \staffspace;
94 % length of a tie that's a staffspace high
95 tie_staffspace_length = 4.0 * \staffspace;
99 Specifies the maximum height of slurs.
101 slur_height_limit_factor = \staffheight;
105 Specifes the ratio of slur hight to slur width
106 to aim for. Default value is 0.3.
110 % try bit flatter slurs
112 slur_clip_ratio = 1.2;
113 slur_clip_height = 3.0 * \staffheight;
114 slur_clip_angle = 100.0;
115 slur_rc_factor = 2.4;
117 % vertical space between lines.
118 line_kern = \staffspace;
121 % chop off this much when next to pp / ff sign.
122 crescendo_shorten = 4.0 * \staffspace;
123 crescendo_thickness = \stafflinethickness;
124 crescendo_height = 0.666 * \staffspace;
127 postBreakPadding = 0.0;
129 % optical correction amount.
130 stemSpacingCorrection = 0.5*\staffspace;
134 relative strength of space following breakable columns (eg. prefatory matter)
136 breakable_column_space_strength = 2.0;
138 % space after inline clefs and such get this much stretched
139 decrease_nonmus_spacing_factor = 1.0 ;
142 space before musical columns (eg. taken by accidentals) get this much
143 stretched when they follow a musical column, in absence of grace notes.
145 0.0 means no extra space (accidentals are ignored)
147 musical_to_musical_left_spacing_factor = 0.4;
150 stretch space this much if there are grace notes before the column
152 before_grace_spacing_factor = 1.2;
155 If columns do not have spacing information set, set it to this much
157 loose_column_distance = 2.0 * \staffspace;
160 Relative cost of compressing (vs. stretching). Increasing this
161 will cause scores to be set looser
165 compression_energy_factor = 0.6;
167 % if stem is on middle line, choose this direction.
168 stem_default_neutral_direction = 1.0;
170 % Backward compatibility -- has no function;
174 \include "engraver.ly";