]> git.donarmstrong.com Git - lilypond.git/blob - ly/params-as.ly
release: 1.3.25
[lilypond.git] / ly / params-as.ly
1 % params-as.ly
2 % generic paper parameters
3
4 #'staff-height = \staffheight;
5
6 %%paperfile = \papersize + ".ly";
7 %%% paperfile = "a4.ly";
8 %%\include \paperfile;
9 %hsize = 60.0\char;
10 %vsize = 60.0\char;  %?
11
12 %%\include "paper.ly";
13 linewidth = 60.0\char;
14 textheight = 60.0\char;
15 indent = 8.0\char;
16
17 interline = (\staffheight - 1.0 ) / 4.0;
18 stafflinethickness = \interline / 2.0;
19
20 % urg, need grace_ versions of these too?
21 beam_thickness = 0.52 * (\interline - \stafflinethickness);
22
23 #'beam-thickness = \beam_thickness;  %% UGR
24
25
26 interbeam = (2.0 * \interline + \stafflinethickness - \beam_thickness) / 2.0;
27 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
28
29 %{
30 The space taken by a note is determined by the formula 
31
32 arithmetic_multiplier * ( c + log2 (time) ))
33
34 where code(time) is the amount of time a note occupies.  The value
35 of code(c) is chosen such that the smallest space within a measure is
36 arithmetic_basicspace.  The smallest space is the one following the
37 shortest note in the measure.  Typically arithmetic_basicspace is set
38 to the width of a quarter note head.
39 %}
40 arithmetic_basicspace = 2.;
41 arithmetic_multiplier = 0.9 * \quartwidth ;
42
43
44 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ; 
45
46 #'Clef_item::visibility-lambda = #postbreak-only-visibility
47 #'Key_item::visibility-lambda = #postbreak-only-visibility
48 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
49
50 % catch suspect beam slopes, set slope to zero if
51 % outer stem is lengthened more than
52 beam_lengthened = 0.2 * \interline;
53 % and slope is running away steeper than
54 beam_steep_slope = 0.2 / 1.0;
55
56 %{
57 dit(code(slur_x_gap)) Horizontal space between note and slur.  Set to
58 code(\interline / 5) by default.  
59
60 %}
61 % OSU: suggested gap = ss / 5;
62 slur_x_gap = \interline / 5.0;
63 slur_y_gap = 0.25 * \interline;
64 slur_y_free = 0.75 * \interline;
65 slur_x_minimum = 1.5 * \interline;
66
67 %{
68 Like beams, slurs often aren't as steep as the notes they encompass.
69 This sets the amount of damping.
70 %}
71 % slope damping: keep dy/dx < slur_slope_damping
72 slur_slope_damping = 0.3;
73 slur_interstaff_slope_damping = 0.6;
74 % height damping: keep h/dx < slur_height_damping
75 slur_height_damping = 0.4;
76 slur_interstaff_height_damping = 0.5;
77 % snap to stem if slur ends closer to stem than
78 slur_snap_to_stem = 1.75 * \interline;
79 slur_interstaff_snap_to_stem = 2.5 * \interline;
80 % maximum dy change allowed by snapping
81 slur_snap_max_slope_change = 0.5;
82 slur_interstaff_snap_max_slope_change = 0.5;
83
84
85
86 tie_x_minimum = \interline + \slur_x_minimum;
87 % OSU: tie gap == slur gap
88 tie_x_gap = \slur_x_gap;
89 tie_y_gap = 0.25 * \interline;
90 % length of a tie that's a staffspace high
91 tie_staffspace_length = 4.0 * \interline;
92
93 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
94
95 % used to be 1.4 .
96 slur_thickness = 1.2 * \stafflinethickness;
97 tie_thickness = 1.2 * \stafflinethickness;
98
99 %{
100  Specifies the maximum height of slurs.
101 %}
102 slur_height_limit = \staffheight;
103
104
105 %{
106 Specifes the ratio of slur hight to slur width
107 to aim for.  Default value is 0.3. 
108 %}
109
110 % slur_ratio = 0.3;
111 % try bit flatter slurs
112 slur_ratio = 0.25;
113 slur_clip_ratio = 1.2;
114 slur_clip_height = 3.0 * \staffheight;
115 slur_clip_angle = 100.0;
116 slur_rc_factor = 2.4;
117
118 % ugh
119 notewidth = 3.0\char;
120
121 gourlay_energybound = 100000.;
122 %{
123 Maximum number of measures per line to try when using Gourlay
124 method. 
125 %}
126 gourlay_maxmeasures = 10.;
127
128 bar_kern = 1.0\char;
129 bar_thinkern = 1.0\char;
130 barthick_thick = 2.0\char;
131 barthick_score = 1.0\char;
132 barthick_thin = 1.0\char;
133
134 bracket_arch_thick = \interline / 3.0;
135 bracket_width = 2.0 * \interline;
136 bracket_thick = 2.0 * \stafflinethickness;
137 bracket_arch_height = 1.5 * \interline;
138 bracket_arch_width = \bracket_arch_height;
139 bracket_arch_angle = 50.0;
140
141 tuplet_spanner_gap = 2.0 * \interline;
142 tuplet_thick = 1.0\char;
143 volta_thick = 1.0\char;
144 volta_spanner_height = 1.0\char;
145
146 % relative thickness of thin lines  1.6 : 1 : 0.8
147 stemthickness = 1.0\char;
148 rulethickness = 1.0\char;
149
150
151 extender_height = 0.8*\stafflinethickness;
152
153 hyphen_thickness = 0.05*\font_normal;
154 hyphen_height = 0.2*\font_normal;
155 hyphen_minimum_length = 0.25*\font_normal;
156
157 % Multi-measure rests
158 multi_measure_rest_x_minimum = 2.5*\staffheight;
159 multi_measure_rest_padding = 2.0 *\interline;
160 multi_measure_rest_expand_limit = 10.0;
161
162 % chop off this much when next to pp / ff sign.
163 crescendo_shorten = 4.0 * \interline;
164 crescendo_thickness   = \stafflinethickness;
165 crescendo_height = 0.666 * \interline;
166
167 % in internote.
168 restcollision_minimum_dist = 3.0;
169 restcollision_minimum_beamdist = 1.5;
170
171
172 % unit for note collision resolving
173 collision_note_width = \notewidth;      %ugh.
174
175 % deprecated!
176 postBreakPadding = 0.0;
177
178 % optical correction amount.
179 stemSpacingCorrection = 0.5*\interline;
180
181
182 %{
183  relative strength of space following breakable columns (eg. prefatory matter)
184  %}
185 breakable_column_space_strength = 2.0; 
186
187 % space after inline clefs and such get this much stretched
188 decrease_nonmus_spacing_factor = 1.0 ;
189
190 %{
191  space before musical columns (eg. taken by accidentals) get this much
192  stretched when they follow a musical column, in absence of grace notes.
193
194  0.0 means no extra space (accidentals are ignored)
195 %}
196 musical_to_musical_left_spacing_factor = 0.4;
197
198 %{
199  stretch space this much if there are grace notes before the column
200 %}
201 before_grace_spacing_factor = 1.2;
202
203 %{
204 If columns do not have spacing information set, set it to this much
205 %}
206 loose_column_distance = 2.0 * \interline;
207
208 %{
209 Relative cost of compressing (vs. stretching).  Increasing this
210 will cause scores to be set looser
211 .
212 %}
213
214 compression_energy_factor = 0.6;
215
216 % if stem is on middle line, choose this direction.
217 stem_default_neutral_direction = 1.0;
218
219 % in interline
220 articulation_script_padding_default = 1.0;
221
222 % Backward compatibility -- has no function; 
223 Gourlay = 0.0;
224 Wordwrap =0.0;
225
226 \include "engraver.ly";
227
228
229 #'margin-shape = #'()
230
231
232
233 #'Local_key_item::left-padding = #'0.2
234 #'Local_key_item::right-padding = #'0.4
235
236 #'Staff_symbol::staff-space = \interline ;
237 #'Staff_symbol::line-count = #5
238