2 % piano p, grabbed from Ed Breitkopf Mozart horn concerto 3.
6 % * there is no dishing in the serif (but we do it anyway)
8 % * The cheek is a little fatter than the stem
10 % * The slant is extreme: 20 degrees
12 % * the twiddle (what'sitcalled) is a slightly darker than the serif
14 % * The hole in the cheek has a straight right side.
16 % * Corners are filled up.
23 currenttransform := identity;
27 serif_thick# = 1.1 stafflinethickness#;
28 define_blacker_pixels (serif_thick);
29 med_thick = round (1.5 stafflinethickness);
31 fet_beginchar("dynamic p", "p", "dynp")
32 set_char_box (0, 13/12 ex#, descender#, 1.0 ex#);
34 save twiddle_thick, stem_thick, cheek_thick;
36 save serif, dishing_angle, p, q;
37 save cheek_medium, left_serif_protude, right_serif_protude;
42 updir := dir (90 - slant );
43 twiddle_thick = med_thick;
44 cheek_medium = 1/6 ex;
47 fill_up := 1.5 serif_thick;
51 cheek_thick = 11/32 ex;
52 cheek_width = 0.72 ex;
53 left_serif_protude = 18/60 ex;
54 right_serif_protude= 15/60 ex;
56 penpos1 (twiddle_thick, -slant - 5);
57 penpos2 (cheek_medium, 90 - slant );
58 penpos3 (cheek_medium, 90 - slant);
60 % x4r - x4l = cheek_thick;
61 penpos4 (cheek_thick, -slant);
62 penpos5 (cheek_medium, -55);
63 penpos6 (stem_thick, 0);
64 penpos17 (straigh_len, 90 -slant);
68 y6l = - descender + serif_thick/2;
72 z7 = whatever * updir + z6l;
75 z2l = whatever *updir + 0.3 [z7, z1r];
76 y8 = ypart (0.9 [z7, z2l]);
77 z8 = 2/3 [z6l, z6r] + whatever * updir;
81 z3l = 0.58 [(stem_thick, -descender), (stem_thick + cheek_width - cheek_thick, -descender)] + whatever * updir;
83 z4r = whatever*updir + (stem_thick+ cheek_width, -descender);
85 z5l = whatever*updir + z3l;
88 z9 = z6r + whatever*updir;
92 z2r{right} .. {dir( -60)}z8 & z8{dir 35} .. z3r{right}
93 .. tension 0.9 .. z4r{-updir} .. z5r{left} .. z9
94 & z9 -- z6r -- z6l -- z7{updir}
95 .. z2l{left} .. tension 1.2 ..
96 % z1r & z1r -- z1l & z1l
97 simple_serif (z1r, z1l, -90)
99 pickup pencircle scaled 1;
103 z12 = z6r + whatever*updir;
108 z17l --- z17r .. z3l{left}.. tension 1.05 .. z12{-updir} .. tension 1.05 .. z5l{right} .. cycle;
110 penlabels (1, 2, 3, 4, 5, 6, 17);
115 pickup pencircle scaled serif_thick;
116 lft x11 = -left_serif_protude;
117 rt x10 = stem_thick+ right_serif_protude;
118 bot y10 = bot y11 = -descender;
121 serif := simple_serif (z10, z11, dishing_angle);
124 labels(7,8, 9, 10, 11,12);
127 z13 = point 0.05 of serif;
128 z14 = point 0.85 of serif;
129 z15 = z6l + updir * fill_up +( serif_thick/2, 0);
130 z16 = z6r + updir * 1.2fill_up- +( serif_thick/2, 0);
131 labels(13,14, 15, 16);
133 % pickup pencircle scaled 1;
134 draw z13{direction 0.05 of serif} .. z16{updir};
135 draw z14{-(direction 0.85 of serif)} .. z15{updir};
138 % forte f, grabbed from Ed Breitkopf Mozart horn concerto 3.
142 % * the bulbs are open.
144 % * blotting around the serif
148 % TODO: insert blots around the serif
154 fet_beginchar("dynamic f", "f", "dynf");
155 set_char_box (0, 1.25 ex#, descender#, ex# + ascender#);
157 save left_angle, right_angle;
158 save serif_length, serif_excentricity;
160 save bulb_thick, bulb_diam, fill_up;
163 bulb_diam = 7.5 / 40 ex;
164 fill_up = 1.5 serif_thick;
165 left_angle = slant - 6;
166 right_angle = slant - 3;
168 bulb_thick = 8/40 ex;
169 serif_length = 0.96 ex;
170 serif_excentricity = 0.01 ex;
174 z2l = z1 + whatever*dir (90 - left_angle);
175 penpos2 (f_thick, 0);
179 penpos3 (med_thick, -90);
180 penpos4 (bulb_thick, -20);
181 z3r = whatever [z4r,z4l];
185 penpos5(bulb_thick, -45);
186 x5r = 0.1 [x4l, x4r];
187 y5l = y4l - bulb_diam;
189 z6 = z2r + whatever* dir (90 - right_angle);
194 penpos7(med_thick, -90);
196 penpos8 (bulb_thick, 160);
198 z7l = whatever [z8r,z8l];
200 penpos9 (bulb_thick, 135);
201 x9r = 0.1 [x8l, x8r];
202 y9l = y8l + bulb_diam;
204 penlabels(2, 3,4,5, 7, 8,9);
208 .. z3l{right} .. z4r{down}
209 .. z5r{left} .. z5l{up}
211 .. z4l{up} .. z3r{left}
213 .. z2r --- z6 .. tension 1.25 .. z7r{left}
214 .. z8r{up} .. z9r{right} .. z9l{down} .. tension 0.8
215 .. z8l{down} .. z7l{right} .. cycle;
216 pickup pencircle scaled 1;
220 pickup pencircle scaled 1.1 serif_thick;
221 (rt x13) - (lft x14) = serif_length;
224 0.5 [x13, x14] = x2 + serif_excentricity;
235 % * right stem is fatter and more straight than the left 2 two stems.
237 % * The twiddle at the left is similar to the p twiddle
239 % * The bottoms of the stems are blotted.
245 % This is cut & paste programming. Somehow 3 i shapes in two chars (p and m)
246 % Doesn't seem worth the trouble of writing a macro.
249 fet_beginchar("dynamic m", "m", "dynm");
250 set_char_box (0, 1.3 ex#, 0, 1.0 ex#);
252 % should share code with p for twiddle.
254 save i_thick, i_angle, i_twiddle_thick,
255 i_twiddle_start_angle, i_twiddle_start_y,
258 save idir, center, right_ending;
259 pair center, idir, right_ending;
262 i_thick := 21 / 80 ex;
264 idir := dir(90- i_angle);
266 i_left_space = 16/80 ex;
267 i_twiddle_thick = serif_thick;
268 i_twiddle_start_y = 1/2 ex;
269 i_twiddle_start_angle = 20;
270 bottom_blot = serif_thick;
272 penpos1 (i_twiddle_thick, -i_twiddle_start_angle);
275 y1 = i_twiddle_start_y;
276 z1r = center - (i_left_space,0) + whatever * idir;
278 y3 = bottom_blot + ypart center;
280 z3l = center + whatever * idir;
282 penpos4(i_thick - bottom_blot, 0);
283 z4 - z3 = whatever * idir;
286 z2l = .25 [z3l, z3r] + whatever * idir;
287 z2r = 3/4 [z1r, z3l] + whatever * idir;
289 z2 = 1/2 [z2l, z2r] ;
291 z5 = z4 + whatever * idir;
294 p := simple_serif (z1l, z1r, 90) .. tension 1.05 .. z2r{right} .. z5l --- z3l
295 .. z4l --- z4r .. z3r --- z5r .. z2l{left} .. cycle;
299 % penlabels (1, 2, 3 , 4,5);
304 z5l = right_ending + (i_left_space,0);
305 penpos1(serif_thick, - i_twiddle_start_angle);
307 y3 = bottom_blot + ypart center;
309 z3l = z5l + whatever * idir;
311 penpos4(i_thick - bottom_blot, 0);
312 z4 - z3 = whatever * idir;
315 z2l = .25 [z3l, z3r] + whatever * idir;
316 z2r = 3/4 [z1r, z3l] + whatever * idir;
318 z2 = 1/2 [z2l, z2r] ;
321 p := simple_serif (z1l, z1r, 90) .. tension 1.05 .. z2r{right} .. z5l --- z3l
322 .. z4l --- z4r .. z3r --- z5r .. z2l{left} .. cycle;
326 % penlabels (1, 2, 3 , 4,5);
328 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
330 i_thick := 25 / 80 ex;
332 i_left_space := 14/80 ex;
333 end_overshoot = 1/2 serif_thick;
336 idir := dir(90- i_angle);
338 z5l = right_ending + (i_left_space,0);
339 penpos5 (whatever, 10);
340 penpos3 (whatever, 20);
345 penpos1(serif_thick, - i_twiddle_start_angle);
347 z3l = z7l + whatever * idir;
348 z3r = z7r + whatever * idir;
349 z5l = z7l + whatever * idir;
350 z5r = z7r + whatever * idir;
352 save end_twiddle_angle;
353 end_twiddle_angle := 35;
354 penpos6(serif_thick, - end_twiddle_angle);
355 y6l = 23/80 ex + ypart center;
356 z6l = 1.6 [z3l, z3r] + whatever * idir;
360 y3l = 1/8 ex + ypart center;
361 y2l = 1 ex+ end_overshoot;
362 z2l = .08 [z3l, z3r] + whatever * idir;
363 z2r = 3/4 [z1r, z3l] + whatever * idir;
365 z2 = 1/2 [z2l, z2r] ;
366 z8 = z7 - (0, 2 end_overshoot);
368 p := simple_serif (z1l, z1r, 90) .. tension 1.05
369 .. z2r{right} .. z5l --- z3l
371 .. simple_serif(z6r, z6l, 90)
375 .. z2l{left} .. cycle;
377 % pickup pencircle scaled 1;
381 % penlabels (1, 2, 3 , 4,5,6,7, 8);
386 %% notes from old dyn code.
388 % "f" obviously has a _lot_ bigger slant than "p" (see Wanske p.239)
389 % however; perhaps we need two f symbols:
390 % - a super-slanted one used in "f" "mf" "sfz" "sf", and
391 % - a more normal-slanted in "ff" "fff" "fp" "fp" (see Wanske p.241)
393 % looking at professionally typeset music reveals that typesetters
394 % are somewhat unsure about slanting in "mf", "fp", "sfz"
396 % "f" and "p" (in any combination) are a lot (factor two) fatter than
397 % "s", "m", and "z". sometimes the "m" and "z" are a bit fatter than
401 % Chester, Breitkopf suggest smaller sizes of these other chars,
402 % using the x-height as reference point.