home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / tex / mutex.arc / MF.ARC / SLURDU16.MF < prev    next >
Text File  |  1990-03-06  |  1KB  |  42 lines

  1. input musicdef
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. %                                                             %
  4. %                   BOGEN (KONVEX)                            %
  5. %                                                             %
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7.  
  8.  
  9. def drawslursneg (expr i,j) =
  10.     save jj, factor, length, depth;
  11.     numeric jj,  absp, length, depth, factor;
  12.     factor:= 1/6;
  13.     length := j*nhw#;
  14.     depth  := i*1/2nhh#;
  15.     if  j<4 : jj := (j*(j-1)+(i-1))*8
  16.     else:    jj := (i-1)*8+(j mod 2)*64+floor((j-2)/2);fi;
  17.           beginchar(jj, length, 0, depth);
  18.             clear;
  19.           % x2 = w; x1 = 0;
  20.             z2r = (w,-d);
  21.             z1l = origin;
  22.             absp := abs((d,w));
  23.             if (factor*absp)>2nhh : factor:= 2nhh/absp fi;
  24.             z3r = 1/2z2r+factor*(d,w);
  25.             penpos1(thinwidth,90);
  26.             penpos2(thinwidth,90);
  27.             penpos3(5/12beamht,90);
  28.             currentpen := pencircle xscaled thinwidth yscaled beamht ;
  29.             penstroke (z1e..z3e..z2e);
  30.           endchar;
  31. enddef;
  32.  
  33. %%%%%%%%%%%%%%%%%%%%%%%
  34. % negative Steigungen %
  35. %%%%%%%%%%%%%%%%%%%%%%%
  36.  
  37. for j= 1 upto 17:
  38. for i= 1 upto min(2j,8):
  39. drawslursneg(i,j);
  40. endfor;endfor;
  41. end;
  42.