]> git.donarmstrong.com Git - lilypond.git/blob - ly/params-as.ly
release: 1.3.88
[lilypond.git] / ly / params-as.ly
1 % params-as.ly
2 % generic paper parameters
3
4 %%paperfile = \papersize + ".ly";
5 %%% paperfile = "a4.ly";
6 %%\include \paperfile;
7 %hsize = 60.0\char;
8 %vsize = 60.0\char;  %?
9
10 %%\include "paper.ly";
11 linewidth = 60.0\char;
12 textheight = 60.0\char;
13 indent = 8.0\char;
14
15 staffspace = (\staffheight - 1.0 ) / 4.0;
16 stafflinethickness = \staffspace / 2.0;
17
18 %{
19 The space taken by a note is determined by the formula 
20
21 arithmetic_multiplier * ( c + log2 (time) ))
22
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.
28 %}
29 arithmetic_basicspace = 2.;
30 arithmetic_multiplier = 0.9 * \quartwidth ;
31
32
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;
38
39 %{
40 dit(code(slur_x_gap)) Horizontal space between note and slur.  Set to
41 code(\staffspace / 5) by default.  
42
43 %}
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;
49
50
51 % use tangent controls or area asymmetry?
52 bezier_area = 1.0;
53 bezier_asymmetry = 1.0;
54 bezier_beautiful = 2.0;
55
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;
61
62 % URG: the magic constants for area asymmetry
63 bezier_pct_c0 = -0.2;
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;
68
69 bezier_before_blowfit = 0.5;
70
71 %{
72 Like beams, slurs often aren't as steep as the notes they encompass.
73 This sets the amount of damping.
74 %}
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;
87
88
89
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;
96
97
98 %{
99  Specifies the maximum height of slurs.
100 %}
101 slur_height_limit_factor = \staffheight;
102
103
104 %{
105 Specifes the ratio of slur hight to slur width
106 to aim for.  Default value is 0.3. 
107 %}
108
109 % slur_ratio = 0.3;
110 % try bit flatter slurs
111 slur_ratio = 0.25;
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;
116
117 % vertical space between lines.
118 line_kern = \staffspace;
119
120
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;
125
126 % deprecated!
127 postBreakPadding = 0.0;
128
129 % optical correction amount.
130 stemSpacingCorrection = 0.5*\staffspace;
131
132
133 %{
134  relative strength of space following breakable columns (eg. prefatory matter)
135  %}
136 breakable_column_space_strength = 2.0; 
137
138 % space after inline clefs and such get this much stretched
139 decrease_nonmus_spacing_factor = 1.0 ;
140
141 %{
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.
144
145  0.0 means no extra space (accidentals are ignored)
146 %}
147 musical_to_musical_left_spacing_factor = 0.4;
148
149 %{
150  stretch space this much if there are grace notes before the column
151 %}
152 before_grace_spacing_factor = 1.2;
153
154 %{
155 If columns do not have spacing information set, set it to this much
156 %}
157 loose_column_distance = 2.0 * \staffspace;
158
159 %{
160 Relative cost of compressing (vs. stretching).  Increasing this
161 will cause scores to be set looser
162 .
163 %}
164
165 compression_energy_factor = 0.6;
166
167 % if stem is on middle line, choose this direction.
168 stem_default_neutral_direction = 1.0;
169
170 % Backward compatibility -- has no function; 
171 Gourlay = 0.0;
172 Wordwrap =0.0;
173
174 \include "engraver.ly";
175