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