]> git.donarmstrong.com Git - lilypond.git/blob - init/params.ly
patch::: 1.0.12.hwn1
[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 beam_dir_algorithm = 2.0;
42
43 %
44 %
45 % some beam-stemlength settings...
46 %
47 %    beam_*1 : multiplicity < beam_multiple_break
48 %    beam_*2 : multiplicity >= beam_multiple_break
49 %
50 beam_multiple_break = 3.0;
51 beam_minimum_stem1 = 1.5 * \interline;
52 beam_minimum_stem2 = 1.0 * \interline;
53 beam_ideal_stem1 = 2.0 * \interline;
54 beam_ideal_stem2 = 1.5 * \interline;
55
56 % beam_slope_damp_correct_factor = 2.0;
57 beam_slope_damp_correct_factor = 0.0;
58
59 % OSU: suggested gap = ss / 5;
60 slur_x_gap = \interline / 5.0;
61 slur_x_minimum = 2.0 * \interline;
62 slur_slope_damping = 0.5;
63 tie_x_minimum = \slur_x_minimum;
64 tie_x_gap = \slur_x_gap;
65 tie_slope_damping = 0.3;
66
67 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
68 % slur_thickness = 1.8 * \staffline;
69 slur_thickness = 1.4 * \staffline;
70 slur_height_limit = \staffheight;
71
72 % mmm, try bit flatter slurs
73 % slur_ratio = 1.0 / 3.0;
74 slur_ratio = 0.3;
75 slur_clip_ratio = 1.2;
76 slur_clip_height = 3.0 * \staffheight;
77 slur_clip_angle = 100.0;
78 slur_rc_factor = 2.4;
79
80 % ugh
81 notewidth = (\quartwidth + \wholewidth) / 2.0;
82
83 % ugh
84 barsize = \staffheight;
85 rulethickness = \staffline;
86 stemthickness = \staffline;
87
88
89 gourlay_energybound = 100000.;
90 %{
91 The following bounds the number of measures
92 on a line.  Decreasing it greatly reduces computation time
93 %}
94 gourlay_maxmeasures = 10.;
95 castingalgorithm = \Gourlay;
96 \include "engraver.ly";
97