]> git.donarmstrong.com Git - lilypond.git/blob - init/params.ly
3f04da0af6d43b1fa8322a9e529f17491d6b3248
[lilypond.git] / init / params.ly
1 % params.ly
2 % generic paper parameters
3
4 paperfile = \papersize + ".ly";
5 % paperfile = "a4.ly";
6 \include \paperfile;
7 \include "paper.ly";
8
9 interline = \staffheight / 4.0;
10
11
12 % thickness of stafflines
13 staffline = \interline / 10.0;
14
15 beam_thickness = 0.52 * (\interline - \staffline);
16 interbeam = (2.0 * \interline - \beam_thickness) / 2.0;
17 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
18
19
20 % stems and beams
21 %
22 % not used for beams
23 stem_length = 3.5*\interline;
24
25 %
26 % stems in unnatural (forced) direction should be shortened,
27 % according to [Roush & Gourlay].  Their suggestion to knock off
28 % a whole staffspace seems a bit drastical though?
29 %
30 forced_stem_shorten = 1.0 * \interline;
31
32 %
33 % there are several ways to calculate the direction of a beam
34
35 % * MAJORITY : number count of up or down notes
36 % * MEAN     : mean centre distance of all notes
37 % * MEDIAN   : mean centre distance weighted per note
38 %
39 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
40 %
41 DOWN = -1.0;
42 UP = 1.0;
43 MAJORITY = 2.0;
44 MEAN = 3.0;
45 MEDIAN = 4.0;
46 % [Ross]: majority
47 beam_dir_algorithm = \MAJORITY;
48
49 %
50 %
51 % some beam-stemlength settings...
52 %
53 % poor man's array
54 %    beam_*1 : multiplicity < beam_multiple_break
55 %    beam_*2 : multiplicity >= beam_multiple_break
56 %
57 beam_multiple_break = 3.0;
58 beam_minimum_stem1 = 0.75 * \interline;
59 beam_ideal_stem1 = 1.75 * \interline;
60 beam_minimum_stem2 = 0.75 * \interline;
61 beam_ideal_stem2 = 1.25 * \interline;
62 % same here
63 beam_forced_multiple_break = 2.0;
64 beam_forced_stem_shorten1 = 0.65 * \interline;
65 beam_forced_stem_shorten2 = 0.50 * \interline;
66
67 % catch suspect beam slopes, set slope to zero if
68 % outer stem is lengthened more than
69 beam_lengthened = 0.2 * \interline;
70 % and slope is running away steeper than
71 beam_steep_slope = 0.2 / 1.0;
72
73 % OSU: suggested gap = ss / 5;
74 slur_x_gap = \interline / 5.0;
75 slur_x_minimum = 2.0 * \interline;
76 slur_slope_damping = 0.5;
77 tie_x_minimum = \slur_x_minimum;
78 tie_x_gap = \slur_x_gap;
79 tie_slope_damping = 0.3;
80
81 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
82 % slur_thickness = 1.8 * \staffline;
83 slur_thickness = 1.4 * \staffline;
84 slur_height_limit = \staffheight;
85
86 % mmm, try bit flatter slurs
87 % slur_ratio = 1.0 / 3.0;
88 slur_ratio = 0.3;
89 slur_clip_ratio = 1.2;
90 slur_clip_height = 3.0 * \staffheight;
91 slur_clip_angle = 100.0;
92 slur_rc_factor = 2.4;
93
94 % ugh
95 notewidth = (\quartwidth + \wholewidth) / 2.0;
96
97 % ugh
98 barsize = \staffheight;
99 rulethickness = \staffline;
100 stemthickness = \staffline;
101
102
103 gourlay_energybound = 100000.;
104 %{
105 The following bounds the number of measures
106 on a line.  Decreasing it greatly reduces computation time
107 %}
108 gourlay_maxmeasures = 10.;
109 castingalgorithm = \Gourlay;
110 \include "engraver.ly";
111