home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / turbo_c / tcmusic.arc / MUSIC.DOC < prev    next >
Text File  |  1987-06-20  |  1KB  |  47 lines

  1.  
  2.  
  3.  
  4. The routines contained in the file 'sound.c' were published in the book
  5. 'BLUEBOOK of ASSEMBLY LANGUAGE ROUTINES for the IBM PC & XT'
  6. published by the Waite group. The play lists contained in the file
  7. 'music.c' are from the same source. Following is an explanation of the
  8. commands and instructions contained in the play lists.
  9.  
  10.     Tempo command:
  11.  
  12.        first byte:  =   ASCII 'T'
  13.  
  14.       second byte:  =   Tempo in whole notes per minute
  15.  
  16.  
  17.     Note command :
  18.  
  19.        first byte:  =   ASCII 'N'
  20.  
  21.       second byte:  =   Pitch number ( integer 0 - 95 )
  22.  
  23.        third byte:  =   Length ( 8 bit binary fixed point - scale 1 )
  24.  
  25.       fourth byte:  =   Style ( 8 bit binary fixed point - scale 0 )
  26.  
  27.  
  28.     Rest command :
  29.  
  30.        first byte:  =   ASCII 'R'
  31.  
  32.       second byte:  =   Length ( 8 bit binary fixed point - scale 1 )
  33.  
  34.  
  35.     End  command :
  36.  
  37.        first byte:  =   ASCII 'X'
  38.  
  39.  
  40.     The scaling is as follows: scale 0 has the binary point to the left of the
  41.     leftmost digit and scale 1 has the binary point to the right of the left-
  42.     most bit.
  43.  
  44. I'm not a musician so the only tunes I can offer are those in the book. If
  45. anyone knows where I can find more or if you develop other tunes, please
  46. leave me a message. Thanks. Ken Moore.
  47.