2 % generic paper parameters
4 #'staff-height = \staffheight;
6 %%paperfile = \papersize + ".ly";
7 %%% paperfile = "a4.ly";
10 %vsize = 60.0\char; %?
12 %%\include "paper.ly";
13 linewidth = 60.0\char;
14 textheight = 60.0\char;
17 staffspace = (\staffheight - 1.0 ) / 4.0;
18 stafflinethickness = \staffspace / 2.0;
21 interline = \staffspace;
23 % urg, need grace_ versions of these too?
24 beam_thickness = 0.52 * (\staffspace - \stafflinethickness);
26 #'beam-thickness = \beam_thickness; %% UGR
29 interbeam = (2.0 * \staffspace + \stafflinethickness - \beam_thickness) / 2.0;
30 interbeam4 = (3.0 * \staffspace - \beam_thickness) / 3.0;
33 The space taken by a note is determined by the formula
35 arithmetic_multiplier * ( c + log2 (time) ))
37 where code(time) is the amount of time a note occupies. The value
38 of code(c) is chosen such that the smallest space within a measure is
39 arithmetic_basicspace. The smallest space is the one following the
40 shortest note in the measure. Typically arithmetic_basicspace is set
41 to the width of a quarter note head.
43 arithmetic_basicspace = 2.;
44 arithmetic_multiplier = 0.9 * \quartwidth ;
47 #'Stem_tremolo::beam-width = 1.5 * \quartwidth ;
49 #'Clef_item::visibility-lambda = #postbreak-only-visibility
50 #'Key_item::visibility-lambda = #postbreak-only-visibility
51 #'Breathing_sign::visibility-lambda = #non-postbreak-visibility
53 % catch suspect beam slopes, set slope to zero if
54 % outer stem is lengthened more than
55 beam_lengthened = 0.2 * \staffspace;
56 % and slope is running away steeper than
57 beam_steep_slope = 0.2 / 1.0;
60 dit(code(slur_x_gap)) Horizontal space between note and slur. Set to
61 code(\staffspace / 5) by default.
64 % OSU: suggested gap = ss / 5;
65 slur_x_gap = \staffspace / 5.0;
66 slur_y_gap = 0.25 * \staffspace;
67 slur_y_free = 0.75 * \staffspace;
68 slur_x_minimum = 1.5 * \staffspace;
71 Like beams, slurs often aren't as steep as the notes they encompass.
72 This sets the amount of damping.
74 % slope damping: keep dy/dx < slur_slope_damping
75 slur_slope_damping = 0.3;
76 slur_interstaff_slope_damping = 0.6;
77 % height damping: keep h/dx < slur_height_damping
78 slur_height_damping = 0.4;
79 slur_interstaff_height_damping = 0.5;
80 % snap to stem if slur ends closer to stem than
81 slur_snap_to_stem = 1.75 * \staffspace;
82 slur_interstaff_snap_to_stem = 2.5 * \staffspace;
83 % maximum dy change allowed by snapping
84 slur_snap_max_slope_change = 0.5;
85 slur_interstaff_snap_max_slope_change = 0.5;
89 tie_x_minimum = \staffspace + \slur_x_minimum;
90 % OSU: tie gap == slur gap
91 tie_x_gap = \slur_x_gap;
92 tie_y_gap = 0.25 * \staffspace;
93 % length of a tie that's a staffspace high
94 tie_staffspace_length = 4.0 * \staffspace;
96 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
99 slur_thickness = 1.2 * \stafflinethickness;
100 tie_thickness = 1.2 * \stafflinethickness;
103 Specifies the maximum height of slurs.
105 slur_height_limit = \staffheight;
109 Specifes the ratio of slur hight to slur width
110 to aim for. Default value is 0.3.
114 % try bit flatter slurs
116 slur_clip_ratio = 1.2;
117 slur_clip_height = 3.0 * \staffheight;
118 slur_clip_angle = 100.0;
119 slur_rc_factor = 2.4;
122 notewidth = 3.0\char;
124 gourlay_energybound = 100000.;
126 Maximum number of measures per line to try when using Gourlay
129 gourlay_maxmeasures = 10.;
132 bar_thinkern = 1.0\char;
133 barthick_thick = 2.0\char;
134 barthick_score = 1.0\char;
135 barthick_thin = 1.0\char;
137 bracket_arch_thick = \staffspace / 3.0;
138 bracket_width = 2.0 * \staffspace;
139 bracket_thick = 2.0 * \stafflinethickness;
140 bracket_arch_height = 1.5 * \staffspace;
141 bracket_arch_width = \bracket_arch_height;
142 bracket_arch_angle = 50.0;
144 tuplet_spanner_gap = 2.0 * \staffspace;
145 tuplet_thick = 1.0\char;
146 volta_thick = 1.0\char;
147 volta_spanner_height = 1.0\char;
149 % relative thickness of thin lines 1.6 : 1 : 0.8
150 stemthickness = 1.0\char;
151 rulethickness = 1.0\char;
154 extender_height = 0.8*\stafflinethickness;
156 hyphen_thickness = 0.05*\font_normal;
157 hyphen_height = 0.2*\font_normal;
158 hyphen_minimum_length = 0.25*\font_normal;
160 % Multi-measure rests
161 multi_measure_rest_x_minimum = 2.5*\staffheight;
162 multi_measure_rest_padding = 2.0 *\staffspace;
163 multi_measure_rest_expand_limit = 10.0;
165 % chop off this much when next to pp / ff sign.
166 crescendo_shorten = 4.0 * \staffspace;
167 crescendo_thickness = \stafflinethickness;
168 crescendo_height = 0.666 * \staffspace;
171 restcollision_minimum_dist = 3.0;
172 restcollision_minimum_beamdist = 1.5;
175 % unit for note collision resolving
176 collision_note_width = \notewidth; %ugh.
179 postBreakPadding = 0.0;
181 % optical correction amount.
182 stemSpacingCorrection = 0.5*\staffspace;
186 relative strength of space following breakable columns (eg. prefatory matter)
188 breakable_column_space_strength = 2.0;
190 % space after inline clefs and such get this much stretched
191 decrease_nonmus_spacing_factor = 1.0 ;
194 space before musical columns (eg. taken by accidentals) get this much
195 stretched when they follow a musical column, in absence of grace notes.
197 0.0 means no extra space (accidentals are ignored)
199 musical_to_musical_left_spacing_factor = 0.4;
202 stretch space this much if there are grace notes before the column
204 before_grace_spacing_factor = 1.2;
207 If columns do not have spacing information set, set it to this much
209 loose_column_distance = 2.0 * \staffspace;
212 Relative cost of compressing (vs. stretching). Increasing this
213 will cause scores to be set looser
217 compression_energy_factor = 0.6;
219 % if stem is on middle line, choose this direction.
220 stem_default_neutral_direction = 1.0;
223 articulation_script_padding_default = 1.0;
225 % Backward compatibility -- has no function;
229 \include "engraver.ly";
232 #'margin-shape = #'()
236 #'Local_key_item::left-padding = #'0.2
237 #'Local_key_item::right-padding = #'0.4
239 #'Staff_symbol::staff-space = \staffspace ;
240 #'Staff_symbol::line-count = #5