home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / midi / cmtcmu / moxcexam.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-28  |  316 b   |  26 lines

  1. /* an example program using moxc */
  2.  
  3. #include "musiprog.h"
  4.  
  5. keydown(c, k, v)
  6.     begin
  7.     pnote(k+12, 100);
  8.     end
  9.  
  10. asciievent(c)
  11.     begin
  12.     when c == 'q' then quit()
  13.     endwhen
  14.     end
  15.  
  16. hello()
  17.     begin
  18.     printf("hello\n");
  19.     cause(300, hello);
  20.     end
  21.  
  22. mainscore()
  23.     begin
  24.     hello();
  25.     end
  26.