%
% source file of the Feta (Font-En-Tja) music font
%
-% (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+% (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
%
1.5 staff_space#);
save interbeam, interstem, beamheight, beamwidth,
- stemwidth;
+ stemwidth, beamslope;
interbeam := 1.05 staff_space;
interstem := 7/16 ;
beamheight := 4 stafflinethickness;
beamwidth := w;
- stemwidth := 1.3 stafflinethickness;
- roundness := 2blot_diameter;
+ stemwidth := 1.5 stafflinethickness;
+ roundness := 2 blot_diameter;
+
pair center;
center := (.5 w, 0);
pickup pencircle scaled roundness;
filldraw (beam shifted (0,-interbeam/2));
- filldraw (beam shifted (0,interbeam/2));
pickup pencircle scaled stemwidth;
x3 = x4 = xpart center;
- bot y3 = -1.5 staff_space + ypart center;
- top y4 = 1.5 staff_space + ypart center;
- path stem;
- stem := z3 .. z4;
numeric xs;
xs := interstem* beamwidth / 2;
- draw stem shifted (- xs, - xs* beamslope);
- draw stem shifted (xs , xs *beamslope);
+
+ (bot y3) + -xs * beamslope = -1.5 staff_space + ypart center;
+ top y4 + xs * beamslope = 1.5 staff_space + ypart center;
+
+ draw_gridline (z3-(xs,xs* beamslope),z4-(xs,xs*beamslope),stemwidth);
+ addto currentpicture also currentpicture rotated 180 shifted (w,0);
labels(1,2,3,4);
+
+
+% to check that it doesn't overshoot staffline.
+%
+% pickup pencircle scaled stafflinethickness;
+% draw (0, 1.5 staff_space ) .. (1 staff_space, 1.5 staff_space);
+
fet_endchar;
-fet_beginchar( "Natural", "0", "natural")
- set_char_box(0, 8/12 staff_space#, 1.5 staff_space#, 1.5 staff_space#);
+%
+% The stems of the natural are brushed (at least, in Barenreiter SCS )
+%
+%
+
+fet_beginchar( "Natural", "0", "natural")
+ save height;
save interbeam, interstem, beamheight, beamwidth,
- stemwidth;
+ stemwidth;
+ save top_stem_thick;
+
+ beamheight# = 4.0 stafflinethickness#;
+ height# = 1.5 staff_space#;
+ set_char_box(0, 2/3 staff_space#, height#, height#);
+
+ define_pixels(height);
+ define_blacker_pixels(beamheight);
+
+ % perhaps we should have a lowres fix?
+ top_stem_thick = 1.9 stafflinethickness;
- beamheight = 4.5 stafflinethickness;
interstem + stemwidth = w;
stemwidth = 1.3 stafflinethickness;
pickup penrazor scaled beamheight rotated 90;
top y2 = staff_space - 3/2 stafflinethickness ;
- slope = stafflinethickness / interstem;
+ slope = stafflinethickness / interstem;
draw z1 .. z2;
draw (xpart z1, -y2) .. (xpart z2, -y1);
beamtop = top y2;
-
+
pickup pencircle scaled stemwidth;
- xpart z3 = xpart z1;
- xpart z4 = xpart z2;
- top y3 = 1.5 staff_space;
+ x3 := round (xpart z1);
+ x4 := round (xpart z2);
+
+ penpos3(top_stem_thick, 0);
+ penpos5(top_stem_thick, 0);
+ penpos4(stemwidth, 0);
+ penpos6(stemwidth, 0);
+
+ y3 = height;
top y4 = beamtop;
- draw (xpart z1, -y4) .. z3;
- draw (xpart z2, -y3) .. z4;
+ x5 = x4;
+ x6 = x3;
+ bot y6 = -beamtop;
+ y5 = - height;
- labels(1,2,3,4);
+ fill simple_serif (z3l, z3r, -30) -- simple_serif(z6r, z6l, -90) -- cycle;
+ fill simple_serif (z5l, z5r, 30) -- simple_serif(z4r, z4l, 90) -- cycle;
+
+
+
+ penlabels(3,4,5,6);
+
+ labels(1,2);
fet_endchar;
x8r = xpart center - bottom_stem_thick/2;
penlabels(range 0 thru 10);
- z10 = (bottom_stem_thick/2, -1/5 staff_space) + center;
+ y10 = -1/5 staff_space;
+ z10 = whatever [z2r, z1r];
- unfill z3r{up} .. z4r{right} .. tension .9
+ unfill z3r .. z4r{right} .. tension .9
.. z6r ---
z7r{left}
- .. z10 {up} -- cycle;
+ .. z10 -- cycle;
fill z8r{down}
.. tension 0.8 ..z8l{(z9-z8)}
.. z7l
set_char_box(charwd, charbp, chardp, charht);
fet_endchar;
-%%%%%%%%
-%
-%
-%
-% EDITIO MEDICAEA
-%
-%
-%
-fet_beginchar("Ed. Med. Flat" , "medicaea-1", "medicaeaflat");
- set_char_box(0, 0.8 staff_space#, 0.6 staff_space#,
- 2.0 staff_space#);
-
- pickup pencircle
- xscaled 0.50 stafflinethickness
- yscaled 0.22 staff_space;
-
- save za, zb;
- pair za, zb;
-
- za = (0.00 staff_space, +0.90 staff_space);
- zb = (0.00 staff_space, -0.50 staff_space);
- draw za -- zb;
-
- pickup pencircle
- xscaled 0.50 stafflinethickness
- yscaled 0.22 staff_space
- rotated -63;
-
- save zc, zd, ze;
- pair zc, zd, ze;
-
- zc = (0.10 staff_space, -0.50 staff_space);
- zd = (0.40 staff_space, +0.40 staff_space);
- ze = (0.10 staff_space, +0.40 staff_space);
-
- draw zc{(1,2)} .. zd .. ze{(-1,-1)};
-
- fet_endchar;
-
-%%%%%%%%
-%
-%
-%
-% EDITIO VATICANA
-%
-%
-%
-fet_beginchar("Ed. Vat. Flat" , "vaticana-1", "vaticanaflat");
- set_char_box(0, 0.7 staff_space#, 0.6 staff_space#,
- 2.0 staff_space#);
- define_pixels (stafflinethickness, staff_space);
-
- save za, zb, zc, zd, ze, zf, zg;
- pair za, zb, zc, zd, ze, zf, zg;
- za = (0.00 staff_space, +0.80 staff_space);
- zb = (0.00 staff_space, -0.03 staff_space);
- zc = (0.25 staff_space, -0.23 staff_space);
- zd = (0.50 staff_space, -0.23 staff_space);
- ze = (0.50 staff_space, +0.00 staff_space);
- zf = (0.25 staff_space, +0.20 staff_space);
- zg = (0.15 staff_space, +0.26 staff_space);
-
- pickup pencircle
- xscaled 0.50 stafflinethickness
- yscaled 0.22 staff_space;
- draw za{down} .. {down}zb .. zc .. zd{up} .. {up}ze .. zf .. zg;
- fet_endchar;
-
-fet_beginchar("Ed. Vat. Natural" , "vaticana0", "vaticananatural");
- set_char_box(0, 0.6 staff_space#, 0.6 staff_space#,
- 2.0 staff_space#);
- define_pixels (stafflinethickness, staff_space);
-
- save za, zb, zc, zd;
- pair za, zb, zc, zd;
- pickup pencircle
- xscaled 0.80 stafflinethickness
- yscaled 0.22 staff_space;
- za = (0.00 staff_space, +0.65 staff_space);
- zb = (0.00 staff_space, -0.35 staff_space);
- zc = (0.00 staff_space, -0.30 staff_space);
- zd = (0.40 staff_space, -0.08 staff_space);
- draw za -- zb;
- draw zc -- zd;
-
- addto currentpicture also currentpicture
- xscaled -1
- yscaled -1
- shifted (0.40 staff_space, 0.0 staff_space);
-
- fet_endchar;
-
-%%%%%%%%
-%
-%
-%
-% MENSURAL NOTATION
-%
-%
-%
-fet_beginchar("Mensural Sharp" , "mensural1", "mensuralsharp");
- set_char_box(0.4 staff_space#, 0.6 staff_space#, 0.5 staff_space#,
- 0.5 staff_space#);
- save stemthick;
- define_pixels (stemthick, staff_space);
- stemthick# = stafflinethickness#;
-
- save za, zb;
- pair za, zb;
- pickup pencircle scaled 0.8 stemthick;
- za = 0.4 * staff_space * (0.8, 1);
- za = -zb;
- draw za .. zb;
-
- addto currentpicture also currentpicture xscaled -1;
- addto currentpicture also currentpicture shifted (0.20 staff_space, 0);
-
- fet_endchar;
-
-fet_beginchar("Mensural Flat" , "mensural-1", "mensuralflat");
- set_char_box(0.1 staff_space#, 0.7 staff_space#, 0.4 staff_space#,
- 1.8 staff_space#);
- save stemthick;
- define_pixels (stemthick, staff_space);
- stemthick# = stafflinethickness#;
-
- save za, zb, zc, zd, ze;
- pair za, zb, zc, zd, ze;
- pickup pencircle
- xscaled 1.4 stemthick
- yscaled 0.6 stemthick
- rotated 45;
-
- za = (0.00 staff_space, +1.80 staff_space);
- zb = (0.00 staff_space, -0.25 staff_space);
- zc = (0.35 staff_space, -0.25 staff_space);
- zd = (0.35 staff_space, +0.25 staff_space);
- ze = (0.00 staff_space, +0.25 staff_space);
- draw za -- zb .. zc .. zd .. ze;
- fet_endchar;
-
-fet_beginchar("Hufnagel Flat" , "hufnagel-1", "hufnagelflat");
- set_char_box(0.5 staff_space#, 0.7 staff_space#, 0.4 staff_space#,
- 1.8 staff_space#);
- save stemthick;
- define_pixels (stemthick, staff_space);
- stemthick# = stafflinethickness#;
-
- save za, zb, zc, zd, ze, zf;
- pair za, zb, zc, zd, ze, zf;
- pickup pencircle
- xscaled 2.4 stemthick
- yscaled 0.4 stemthick
- rotated 45;
-
- za = (0.00 staff_space, +1.80 staff_space);
- zb = (0.00 staff_space, -0.15 staff_space);
- zc = (0.25 staff_space, -0.30 staff_space);
- zd = (0.50 staff_space, +0.00 staff_space);
- ze = (0.30 staff_space, +0.30 staff_space);
- zf = (0.00 staff_space, +0.15 staff_space);
- draw za -- zb -- zc .. zd .. ze -- zf;
- fet_endchar;
-
fet_endgroup("accidentals");