]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
release: 1.1.24
[lilypond.git] / ly / 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 % stems and beams
20 %
21 % poor man's array size
22 stem_max = 3.0;
23 %
24 stem_length0 = 3.5*\interline;
25 stem_length1 = 2.5 * \interline;
26 stem_length2 = 2.0 * \interline;
27 stem_length3 = 1.5 * \interline;
28
29 % only used for beams
30 minimum_stem_length0 = 0.0; % not used
31 minimum_stem_length1 = 1.5 * \interline;
32 minimum_stem_length2 = 1.25 * \interline;
33 minimum_stem_length3 = 1.0 * \interline;
34
35 % stems in unnatural (forced) direction should be shortened,
36 % according to [Roush & Gourlay].  Their suggestion to knock off
37 % a whole staffspace seems a bit drastical: we'll do half.
38 %
39 forced_stem_shorten0 = 0.5 * \interline;
40 forced_stem_shorten1 = \forced_stem_shorten0;
41 forced_stem_shorten2 = \forced_stem_shorten1;
42 forced_stem_shorten3 = \forced_stem_shorten2;
43
44 % there are several ways to calculate the direction of a beam
45
46 % * MAJORITY : number count of up or down notes
47 % * MEAN     : mean centre distance of all notes
48 % * MEDIAN   : mean centre distance weighted per note
49 %
50 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
51 %
52 DOWN = -1.0;
53 UP = 1.0;
54 MAJORITY = 2.0;
55 MEAN = 3.0;
56 MEDIAN = 4.0;
57 % [Ross]: majority
58 beam_dir_algorithm = \MAJORITY;
59
60 % catch suspect beam slopes, set slope to zero if
61 % outer stem is lengthened more than
62 beam_lengthened = 0.2 * \interline;
63 % and slope is running away steeper than
64 beam_steep_slope = 0.2 / 1.0;
65
66 % OSU: suggested gap = ss / 5;
67 slur_x_gap = \interline / 5.0;
68 slur_x_minimum = 2.0 * \interline;
69 slur_slope_damping = 0.5;
70 tie_x_minimum = \slur_x_minimum;
71 tie_x_gap = \slur_x_gap;
72 tie_slope_damping = 0.3;
73
74 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
75 % slur_thickness = 1.8 * \staffline;
76 slur_thickness = 1.4 * \staffline;
77 slur_height_limit = \staffheight;
78
79 % mmm, try bit flatter slurs
80 % slur_ratio = 1.0 / 3.0;
81 slur_ratio = 0.3;
82 slur_clip_ratio = 1.2;
83 slur_clip_height = 3.0 * \staffheight;
84 slur_clip_angle = 100.0;
85 slur_rc_factor = 2.4;
86
87 % ugh
88 notewidth = (\quartwidth + \wholewidth) / 2.0;
89
90 % ugh
91 barsize = \staffheight;
92 rulethickness = \staffline;
93 stemthickness = \staffline;
94
95
96 gourlay_energybound = 100000.;
97 %{
98 The following bounds the number of measures
99 on a line.  Decreasing it greatly reduces computation time
100 %}
101 gourlay_maxmeasures = 10.;
102 castingalgorithm = \Gourlay;
103
104 %{
105 Ross. page 151
106 %}
107 bar_kern = 0.5 * \interline;
108 bar_thinkern = 0.75 * \interline;
109 barthick_thick = 0.5* \interline;
110 barthick_thin = 0.1*\interline;
111
112
113 \include "engraver.ly";
114
115