]> git.donarmstrong.com Git - lilypond.git/blob - mf/feta-params.mf
94a7e487bfdd7825f49c9a9194b2feac2a1f1042
[lilypond.git] / mf / feta-params.mf
1
2 stafflines = 5;
3
4 %
5 % The design size of a staff should really be the 
6 % staff_space, but we use staffsize for historical reasons.
7
8 staff_space# = staffsize#/(stafflines-1);
9
10
11 % measuring on pocket scores turns out: stafflinethickness is
12 % largely independent on staff size, and generally about 0.5 pt.
13 %
14 % by request of WL, we tune down the blackness a little
15 % for increased contrast with beams.
16
17 %% !! synchronize with paper.scm
18
19 save fixed_line_thickness, variable_line_factor;
20 fixed_line_thickness + variable_line_factor * 5 pt# = 0.50 pt#;
21 fixed_line_thickness + variable_line_factor * 4.125 pt# = 0.47 pt#;
22
23 stafflinethickness#  = fixed_line_thickness + variable_line_factor * staff_space#; 
24
25 %
26 % The following tunes the general blackness of the glyphs. 
27 %
28 linethickness# = stafflinethickness#; %%   0.5 pt#;
29
30 %
31 % bigger puff_up_factor, relatively thicker stafflines.
32 % 20 pt = puff_up_factor 0.
33 % 10 pt = puff_up_factor 1
34 %
35 puff_up_factor =  (linethickness# - 0.1 staff_space#) / (0.1 staff_space#);
36
37
38
39 stemthickness# := 1.3 stafflinethickness#;
40 ledgerlinethickness# := 2 stafflinethickness#;
41
42 define_pixels(staff_space, stemthickness);
43 define_pixels(stafflinethickness, ledgerlinethickness, linethickness);
44
45
46
47 % Because of the engraving/stamping process, no traditional
48 % characters have sharp edges and corners
49 % The following variable controls the amount of "roundness"
50 %
51 % this is not a meta variable: it is related to absolute sizes.
52 %
53 % FIXME: According to [Wanske], only outside corners should be round
54 %        I don't think we do this anywhere -- jcn
55 numeric blot_diameter;
56 blot_diameter# = .35 pt#;
57 if (blot_diameter# * hppp) < 1:
58         blot_diameter# := 1/hppp;
59 fi
60 if (blot_diameter# * vppp) < 1:
61         blot_diameter# := 1/vppp;
62 fi
63 define_pixels(blot_diameter);
64
65
66
67