]> git.donarmstrong.com Git - lilypond.git/blob - mf/xdrawsl.mf
fe8c5ec0b82ee7c1a3baf40c9b23eb1ad7228f8a
[lilypond.git] / mf / xdrawsl.mf
1 %(c)
2
3 min_bow:=  .5nhh;
4 max_bow:= 1.5nhh;
5 slope:=17.5/100;
6
7 code=-1;
8
9 for iht=1 upto 8:
10   for iwd=0 upto 15:
11     beginchar(incr code, 0, 0, 0);
12       mw#:=(minwidth+iwd*delwidth)*pt#;
13       define_pixels(mw);
14       x1 = y1= 0; x3= mw; y3= 2y2'= iht*delheight; x2'= .5x3;
15       mheight:=y3;
16       z2-z2'= whatever*dir(angle(z3-z1)+90);
17       my_bow:=min(max_bow, slope*mw);
18       my_bow:=max(my_bow, min_bow);
19       z1'=(z1-(0,my_bow)) rotated angle(z3-z1);
20       (z1'-z2)=whatever*(z1-z2');
21       penpos1(.15thick,(angle(z3-z1)+90));
22       penpos2(thick,(angle(z3-z1)+90));
23       penpos3(.15thick,(angle(z3-z1)+90));
24       penstroke (flex(z1e,z2e,z3e));
25 %{{{
26       currentpen:= pencircle;
27       draw (flex(z1,z2,z3));% draw z1--z3; draw z2'--z2--z1'--z1;
28 %}}}
29       currentpicture:=currentpicture t;
30       p:=currentpicture;
31     endchar;
32
33     beginchar(code+128, 0, 0, 0);
34       currentpicture:=p T;
35     endchar;
36
37   endfor
38 endfor
39 end