lilypond-1.3.126
[lilypond.git] / ly / params-as.ly
blobf805540d6973a8796b34d4442e29e5612018dcf4
1 % params-as.ly
2 % generic paper parameters
4 %%paperfile = \papersize + ".ly";
5 %%% paperfile = "a4.ly";
6 %%\include \paperfile;
7 %hsize = 60.0\char;
8 %vsize = 60.0\char; %?
10 %%\include "paper.ly";
11 linewidth = 60.0\char;
12 textheight = 60.0\char;
13 indent = 8.0\char;
15 staffspace = (\staffheight - 1.0 ) / 4.0;
16 stafflinethickness = \staffspace / 2.0;
18 % deprecated
19 interline = \staffspace;
22 The space taken by a note is determined by the formula
24 arithmetic_multiplier * ( c + log2 (time) ))
26 where code(time) is the amount of time a note occupies. The value
27 of code(c) is chosen such that the smallest space within a measure is
28 arithmetic_basicspace. The smallest space is the one following the
29 shortest note in the measure. Typically arithmetic_basicspace is set
30 to the width of a quarter note head.
32 % quartwidth == 1.32 * staffspace
33 arithmetic_basicspace = 2.;
34 %arithmetic_multiplier = 0.9 * \quartwidth ;
35 arithmetic_multiplier = 0.9 * 1.32 * \staffspace;
38 % catch suspect beam slopes, set slope to zero if
39 % outer stem is lengthened more than
40 beam_lengthened = 0.2 * \staffspace;
41 % and slope is running away steeper than
42 beam_steep_slope = 0.2 / 1.0;
45 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
46 code(\staffspace / 5) by default.
49 % OSU: suggested gap = ss / 5;
50 slur_x_gap = \staffspace / 5.0;
51 slur_y_gap = 0.25 * \staffspace;
52 slur_y_free = 0.75 * \staffspace;
53 slur_x_minimum = 1.5 * \staffspace;
56 % use tangent controls or area asymmetry?
57 bezier_area = 1.0;
58 bezier_asymmetry = 1.0;
59 bezier_beautiful = 2.0;
61 % The constants that define the valid areas for the middle control points
62 % Used in de_uglyfy. Bit empirical.
63 bezier_control1 = 1.5;
64 bezier_control2 = 0.8;
65 bezier_control3 = -2.0;
67 % URG: the magic constants for area asymmetry
68 bezier_pct_c0 = -0.2;
69 bezier_pct_c3 = 0.000006;
70 bezier_pct_out_max = 0.8;
71 bezier_pct_in_max = 1.2;
72 bezier_area_steps = 1.0;
74 bezier_before_blowfit = 0.5;
77 Like beams, slurs often aren't as steep as the notes they encompass.
78 This sets the amount of damping.
80 % slope damping: keep dy/dx < slur_slope_damping
81 slur_slope_damping = 0.3;
82 slur_interstaff_slope_damping = 0.6;
83 % height damping: keep h/dx < slur_height_damping
84 slur_height_damping = 0.4;
85 slur_interstaff_height_damping = 0.5;
86 % snap to stem if slur ends closer to stem than
87 slur_snap_to_stem = 1.75 * \staffspace;
88 slur_interstaff_snap_to_stem = 2.5 * \staffspace;
89 % maximum dy change allowed by snapping
90 slur_snap_max_slope_change = 0.5;
91 slur_interstaff_snap_max_slope_change = 0.5;
95 tie_x_minimum = \staffspace + \slur_x_minimum;
96 % OSU: tie gap == slur gap
97 tie_x_gap = \slur_x_gap;
98 tie_y_gap = 0.25 * \staffspace;
99 % length of a tie that's a staffspace high
100 tie_staffspace_length = 4.0 * \staffspace;
104 Specifies the maximum height of slurs.
106 slur_height_limit_factor = \staffheight;
110 Specifes the ratio of slur hight to slur width
111 to aim for. Default value is 0.3.
114 % slur_ratio = 0.3;
115 % try bit flatter slurs
116 slur_ratio = 0.25;
117 slur_clip_ratio = 1.2;
118 slur_clip_height = 3.0 * \staffheight;
119 slur_clip_angle = 100.0;
120 slur_rc_factor = 2.4;
122 % vertical space between lines.
123 line_kern = \staffspace;
126 % chop off this much when next to pp / ff sign.
127 crescendo_shorten = 4.0 * \staffspace;
128 crescendo_thickness = \stafflinethickness;
129 crescendo_height = 0.666 * \staffspace;
131 % deprecated!
132 postBreakPadding = 0.0;
134 % optical correction amount.
135 stemSpacingCorrection = 0.5*\staffspace;
139 relative strength of space following breakable columns (eg. prefatory matter)
141 breakable_column_space_strength = 2.0;
143 % space after inline clefs and such get this much stretched
144 decrease_nonmus_spacing_factor = 1.0 ;
147 space before musical columns (eg. taken by accidentals) get this much
148 stretched when they follow a musical column, in absence of grace notes.
150 0.0 means no extra space (accidentals are ignored)
152 musical_to_musical_left_spacing_factor = 0.4;
155 stretch space this much if there are grace notes before the column
157 before_grace_spacing_factor = 1.2;
160 If columns do not have spacing information set, set it to this much
162 loose_column_distance = 2.0 * \staffspace;
165 Relative cost of compressing (vs. stretching). Increasing this
166 will cause scores to be set looser
170 compression_energy_factor = 0.6;
172 % if stem is on middle line, choose this direction.
173 stem_default_neutral_direction = 1.0;
175 % Backward compatibility -- has no function;
176 Gourlay = 0.0;
177 Wordwrap =0.0;
179 \include "engraver.ly";