home *** CD-ROM | disk | FTP | other *** search
/ Audio Version 4.94 / audioversion4.94knowledgemediaresourcelibraryoctober1994.iso / unix / midi_doc / mid_msgs < prev    next >
Text File  |  1993-02-08  |  7KB  |  171 lines

  1.  
  2.                     MIDI 1.0 Specification:
  3.  
  4. Status       Data Byte(s)     Description
  5. D7----D0     D7----D0
  6. -------------------------------------------------------------------------
  7. Channel Voice Messages
  8. -------------------------------------------------------------------------
  9. 1000cccc     0nnnnnnn         Note Off event.
  10.              0vvvvvvv         This message is sent when a
  11.                               note is released (ended).
  12.                       (nnnnnnn) is the note number.
  13.                   (vvvvvvv) is the velocity.
  14.  
  15. 1001cccc     0nnnnnnn         Note On event.
  16.              0vvvvvvv         This message is sent when a
  17.                               note is depressed (start).
  18.                               (nnnnnnn) is the note number.
  19.                               (vvvvvvv) is the velocity.
  20.  
  21. 1010cccc     0nnnnnnn         Polyphonic Key Pressure (After-touch).
  22.              0vvvvvvv         This message is sent when the pressure
  23.                               (velocity) of a previously
  24.                               triggered note changes.
  25.                               (nnnnnnn) is the note number.
  26.                   (vvvvvvv) is the new velocity.
  27.  
  28. 1011cccc     0ccccccc         Control Change.
  29.              0vvvvvvv         This message is sent when a controller
  30.                               value changes.  Controllers include devices
  31.                   such as pedals and levers.
  32.                   Certain controller numbers are reserved
  33.                   for specific purposes. See Channel Mode Messages.
  34.                               (ccccccc) is the controller number.
  35.                               (vvvvvvv) is the new value.
  36.  
  37. 1100cccc     0ppppppp         Program Change.
  38.                               This message sent when the patch number changes.
  39.                               (ppppppp) is the new program number.
  40.  
  41. 1101nnnn     0ccccccc         Channel Pressure (After-touch).
  42.                               This message is sent when the channel pressure
  43.                               changes. Some velocity-sensing keyboards do not
  44.                               support polyphonic after-touch. Use this
  45.                               message to send the single greatest velocity
  46.                               (of all te current depressed keys).
  47.                               (ccccccc) is the channel number.
  48.  
  49. 1110nnnn     0lllllll         Pitch Wheel Change.
  50.              0mmmmmmm         This message is sent to indicate a change in the
  51.                               pitch wheel.  The pitch wheel is measured by a
  52.                               fourteen bit value. Center (no pitch change) is
  53.                               2000H.  Sensitivity is a function of the 
  54.                               transmitter.
  55.                               (llllll) are the least significant 7 bits.
  56.                               (mmmmmm) are the most significant 7 bits.
  57. -------------------------------------------------------------------------
  58. Channel Mode Messages  (See also Control Change, above)
  59. -------------------------------------------------------------------------
  60. 1011nnnn     0ccccccc         Channel Mode Messages.
  61.              0vvvvvvv         This the same code as the Control
  62.                               Change (above), but implements Mode
  63.                               control by using reserved controller
  64.                               numbers.  The numbers are:
  65.  
  66.                   Local Control.
  67.                   When Local Control is Off, all devices
  68.                   on a given channel will respond only to
  69.                   data received over MIDI.  Played data, etc.
  70.                   will be ignored.  Local Control On
  71.                   restores the functions of the normal
  72.                   controllers.
  73.                               c = 122, v =   0: Local Control Off
  74.                               c = 122, v = 127: Local Control On
  75.  
  76.                   All Notes Off.
  77.                   When an All Notes Off is received,
  78.                   all oscillators will turn off.
  79.                   c = 123, v =   0: All Notes Off
  80.  
  81.                   (See text for description of actual
  82.                   mode commands.)
  83.                   c = 124, v =   0: Omni Mode Off
  84.                   c = 125, v =   0: Omni Mode On
  85.                   c = 126, v =   M: Mono Mode On (Poly Off)
  86.                   where M is the number of channels
  87.                   (Omni Off) or 0 (Omni On)
  88.                   c = 127, v =   0: Poly Mode On (Mono Off)
  89.                   (Note: These four messages also cause
  90.                   All Notes Off)
  91. .pa
  92. -------------------------------------------------------------------------
  93. System Common Messages
  94. -------------------------------------------------------------------------
  95. 11110000     0iiiiiii          System Exclusive.
  96.              0ddddddd         This message makes up for all that MIDI
  97.                 ..            doesn't support.  (iiiiiii) is a seven
  98.               ..            bit Manufacturer's I.D. code.  If the
  99.              0ddddddd         synthesizer recognizes the I.D. code as
  100.              11110111         its own, it will listen to the rest of
  101.                   the message (ddddddd).  Otherwise, the
  102.                   message will be ignored.  System Exclusive
  103.                   is used to send bulk dumps such as patch
  104.                   parameters and other non-spec data.
  105.                   (Note: Real-Time messages ONLY may be
  106.                   interleaved with a System Exclusive.)
  107.  
  108. 11110001              Undefined.
  109.  
  110. 11110010     0lllllll          Song Position Pointer.
  111.          0mmmmmmm          This is an internal 14 bit register that
  112.                   holds the number of MIDI beats (1 beat=
  113.                   six MIDI clocks) since the start of
  114.                   the song.  l is the LSB, m the MSB.
  115.  
  116. 11110011     0sssssss          Song Select.
  117.                   The Song Select specifies which sequence 
  118.                   or song is to be played.
  119.  
  120. 11110100              Undefined.
  121.  
  122. 11110101              Undefined.
  123.  
  124. 11110110              Tune Request.
  125.                   Upon receiving a Tune Request, all analog
  126.                   sythesizers should tune their oscillators.
  127.  
  128. 11110111              End of Exclusive.
  129.                   Used to terminate a System Exclusive
  130.                   dump (see above).
  131. .pa
  132. -------------------------------------------------------------------------
  133. System Real-Time Messages
  134. -------------------------------------------------------------------------
  135. 11111000              Timing Clock.
  136.                   Sent 24 times per quarter note when
  137.                   synchronization is required (see text).
  138.  
  139. 11111001              Undefined.
  140.  
  141. 11111010              Start.
  142.                   Start the current sequence playing.
  143.                   (This message will be followed with
  144.                   Timing Clocks).
  145.  
  146. 11111011              Continue.
  147.                   Continue at the point the sequence was
  148.                   Stopped.
  149.  
  150. 11111100              Stop.
  151.                   Stop the current sequence.
  152.  
  153. 11111101              Undefined.
  154.  
  155. 11111110              Active Sensing.
  156.                   Use of this message is optional.  When
  157.                   initially sent, the receiver will expect
  158.                   to receive another Active Sensing message
  159.                   each 300ms (max), or it will be assume
  160.                   that the connection has been terminated.
  161.                   At termination, the receiver will turn off
  162.                   all voices and return to normal (non-
  163.                   active sensing) operation.
  164.  
  165. 11111111              Reset.
  166.                   Reset all receivers in the system to
  167.                   power-up status.  This should be used
  168.                   sparingly, preferably under manual
  169.                   control.  In particular, it should not
  170.                   be sent on power-up.
  171.