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

  1. input musicdef
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. %                                                             %
  4. %                   BOGEN (KONKAV)                            %
  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.             z2r = (w,-d);
  20.             z1l = origin;
  21.             absp := abs((d,w));
  22.             if (factor*absp)>2nhh : factor:= 2nhh/absp fi;
  23.             z3r = 1/2z2r+factor*(d,w);
  24.             penpos1(thinwidth,90);
  25.             penpos2(thinwidth,90);
  26.             penpos3(5/12beamht,90);
  27.             currentpen := pencircle xscaled thinwidth yscaled beamht ;
  28.             penstroke (z1e..z3e..z2e) rotatedaround (1/2z2r,180);
  29.           endchar;
  30. enddef;
  31.  
  32. %%%%%%%%%%%%%%%%%%%%%%%
  33. % negative Steigungen %
  34. %%%%%%%%%%%%%%%%%%%%%%%
  35.  
  36. for j= 1 upto 17:
  37. for i= 1 upto min(2j,8):
  38. drawslursneg(i,j);
  39. endfor;endfor;
  40. end;
  41.