]> git.donarmstrong.com Git - lilypond.git/blob - init/params.ly
release: 1.0.3
[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 internote = \interline / 2.0;
11 staffline = \interline / 10.0;
12
13 beam_thickness = 0.52 * (\interline - \staffline);
14 interbeam = (2.0 * \interline - \beam_thickness) / 2.0;
15 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
16 %
17
18 % stems and beams
19 %
20 % not used for beams
21 stem_length = 7.0*\internote;
22 %
23 % stems in unnatural (forced) direction should be shortened,
24 % according to [Roush & Gourlay].  Their suggestion to knock off
25 % a whole staffspace seems a bit drastical though?
26 %
27 forced_stem_shorten = 1.0 * \interline;
28 %
29 % there are several ways to calculate the direction of a beam
30
31 % * MAJORITY : number count of up or down notes
32 % * MEAN     : mean centre distance of all notes
33 % * MEDIAN   : mean centre distance weighted per note
34 %
35 % enum Dir_algorithm { DOWN=-1, UP=1, MAJORITY=2, MEAN, MEDIAN };
36 %
37 beam_dir_algorithm = 2.0;
38 %
39 %
40 % some beam-stemlength settings...
41 %
42 %    beam_*1 : multiplicity < beam_multiple_break
43 %    beam_*2 : multiplicity >= beam_multiple_break
44 %
45 beam_multiple_break = 3.0;
46 beam_minimum_stem1 = 1.5 * \interline;
47 beam_minimum_stem2 = 1.0 * \interline;
48 beam_ideal_stem1 = 2.0 * \interline;
49 beam_ideal_stem2 = 1.5 * \interline;
50 % beam_slope_damp_correct_factor = 2.0;
51 beam_slope_damp_correct_factor = 0.0;
52
53 % OSU: suggested gap = ss / 5;
54 slur_x_gap = \interline / 5.0;
55 slur_x_minimum = 2.0 * \interline;
56 slur_slope_damping = 0.5;
57 tie_x_minimum = \slur_x_minimum;
58 tie_x_gap = \slur_x_gap;
59 tie_slope_damping = 0.3;
60
61 % ugh: rename to bow (in bezier.cc and fonts.doc too...)
62 % slur_thickness = 1.8 * \staffline;
63 slur_thickness = 1.4 * \staffline;
64 slur_height_limit = \staffheight;
65 % mmm, try bit flatter slurs
66 % slur_ratio = 1.0 / 3.0;
67 slur_ratio = 0.3;
68 slur_clip_ratio = 1.2;
69 slur_clip_height = 3.0 * \staffheight;
70 slur_clip_angle = 100.0;
71 slur_rc_factor = 2.4;
72
73 % ugh
74 notewidth = (\quartwidth + \wholewidth) / 2.0;
75
76 % ugh
77 barsize = \staffheight;
78 rulethickness = \staffline;
79 stemthickness = \staffline;
80
81 % uhm
82 unitspace = 22.\pt;
83 geometric = 0.;
84
85 gourlay_energybound = 100000.;
86 %{
87 The following bounds the number of measures
88 on a line.  Decreasing it greatly reduces computation time
89 %}
90 gourlay_maxmeasures = 10.;
91 castingalgorithm = \Gourlay;
92 \include "engraver.ly";
93