home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / sound / players / mp02_tar.z / mp02_tar / mp02 / midicode.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-03  |  1016 b   |  45 lines

  1. /****************************************************************************
  2. *
  3. * Midi codes
  4. *
  5. ****************************************************************************/
  6.  
  7. #define MIDI_DATA(d) (0x7f & (d))
  8. #define MIDI_CHANNEL(c) (0x0f & ((c) - 1))
  9. #define MIDI_PROGRAM(p) MIDI_DATA((p) - 1)
  10.  
  11. #define MIDI_CODE_MASK        0xf0
  12. #define MIDI_CHN_MASK        0x0f
  13. #define MIDI_OFF_NOTE        0x80
  14. #define MIDI_ON_NOTE        0x90
  15. #define MIDI_POLY_TOUCH      0xa0
  16. #define MIDI_CTRL        0xb0
  17. #define MIDI_CH_PROGRAM        0xc0
  18. #define MIDI_TOUCH        0xd0
  19. #define MIDI_BEND        0xe0
  20. #define MIDI_EOX        0xF7
  21.  
  22. #define MODWHEEL 1
  23. #define BREATH 2
  24. #define FOOT 4
  25. #define PORTARATE 5
  26. #define VOLUME 7
  27. #define PAN 10
  28. #define EXPRESSION 11
  29. #define SUSTAIN 64
  30. #define PORTASWITCH 65
  31. #define ALL_NOTES_OFF 123
  32. #define SOSTENUTO 66
  33. #define SOFT_PEDAL 67
  34. #define GENERAL_4 68
  35. #define HOLD_2 69
  36. #define GENERAL_5 80
  37. #define GENERAL_6 81
  38. #define GENERAL_7 82
  39. #define GENERAL_8 83
  40. #define TREMULO_DEPTH 92
  41. #define CHORUS_DEPTH 93
  42. #define DETUNE 94
  43. #define PHASER_DEPTH 95
  44.  
  45.