home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3dm / midi / mdGetStatus.z / mdGetStatus
Encoding:
Text File  |  2002-10-03  |  3.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. mmmmddddGGGGeeeettttSSSSttttaaaattttuuuussss((((3333ddddmmmm))))                                              mmmmddddGGGGeeeettttSSSSttttaaaattttuuuussss((((3333ddddmmmm))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mdGetStatus, mdGetChannel, mdGetByte1, mdGetByte2, mdSetStatus,
  10.      mdSetChannel, mdSetByte1, mdSetByte2 - manipulate MIDI messages
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////mmmmiiiiddddiiii....hhhh>>>>
  14.  
  15.      iiiinnnntttt mmmmddddGGGGeeeettttSSSSttttaaaattttuuuussss((((cccchhhhaaaarrrr ****mmmmssssgggg)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  16.      iiiinnnntttt mmmmddddGGGGeeeettttCCCChhhhaaaannnnnnnneeeellll((((cccchhhhaaaarrrr ****mmmmssssgggg)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  17.      iiiinnnntttt mmmmddddGGGGeeeettttBBBByyyytttteeee1111((((cccchhhhaaaarrrr ****mmmmssssgggg)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  18.      iiiinnnntttt mmmmddddGGGGeeeettttBBBByyyytttteeee2222((((cccchhhhaaaarrrr ****mmmmssssgggg)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  19.      vvvvooooiiiidddd mmmmddddSSSSeeeettttSSSSttttaaaattttuuuussss((((cccchhhhaaaarrrr ****mmmmssssgggg,,,, iiiinnnntttt xxxx)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  20.      vvvvooooiiiidddd mmmmddddSSSSeeeettttCCCChhhhaaaannnnnnnneeeellll((((cccchhhhaaaarrrr ****mmmmssssgggg,,,, iiiinnnntttt xxxx)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  21.      vvvvooooiiiidddd mmmmddddSSSSeeeettttBBBByyyytttteeee1111((((cccchhhhaaaarrrr ****mmmmssssgggg,,,, iiiinnnntttt xxxx)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  22.      vvvvooooiiiidddd mmmmddddSSSSeeeettttBBBByyyytttteeee2222((((cccchhhhaaaarrrr ****mmmmssssgggg,,,, iiiinnnntttt xxxx)))) ((((oooobbbbssssoooolllleeeetttteeee))))
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      These routines routines are obsolete and are retained only for backwards
  26.      compatibility.  They can be replaced with the following definitions:
  27.  
  28.      #define mdGetStatus(msg)    (msg[0] & MD_STATUSMASK)
  29.      #define mdGetChannel(msg)   (msg[0] & MD_CHANNELMASK)
  30.      #define mdGetByte1(msg)     (msg[1])
  31.      #define mdGetByte2(msg)     (msg[2])
  32.      #define mdSetStatus(msg,x)  (msg[0] = (x) | mdGetChannel(msg))
  33.      #define mdSetChannel(msg,x) (msg[0] = mdGetStatus(msg) | (x))
  34.      #define mdSetByte1(msg, x)  (msg[1] = (x))
  35.      #define mdSetByte2(msg, x)  (msg[2] = (x))
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                                                         PPPPaaaaggggeeee 1111
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.