home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / miscprog / melody16 / plarray.c < prev    next >
Encoding:
Text File  |  1991-04-13  |  347 b   |  13 lines

  1. /*   Function playarray() plays a global array melody. */ 
  2.  
  3. playarray()
  4. {
  5.   int i;
  6.  
  7.   for (i=0;i<MAX;i++)
  8.   {
  9.     sound(melody[i][0]);     /* USE                                   */
  10.     delay(melody[i][1]);     /* tone(melody[i][0], melody[i][1]);     */
  11.     nosound();               /* for other compilers.                  */
  12.   }
  13. }