home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / MISC / SYSXMAN1 / SONC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-28  |  1.5 KB  |  72 lines

  1. #define MONO        1
  2. #define STEREO        2
  3.  
  4. #define SB15        1
  5. #define SBPRO        2
  6. #define SB20        3
  7.  
  8.   /* waveform types */
  9.  
  10. #define SAWTOOTH    1
  11. #define TRIANGLE    2
  12. #define SQUARE        3
  13. #define SINE        4
  14. #define POS_SAWTOOTH    129
  15. #define POS_TRIANGLE    130
  16. #define POS_SQUARE    131
  17. #define POS_SINE    132
  18.  
  19.   /* MIDI messages */
  20.  
  21. #define NOTE_OFF    128
  22. #define NOTE_OFF_VEL    129
  23. #define NOTE_OFF_RESET    130
  24. #define NOTE_OFF_DECAY_RESET    131
  25. #define NOTE_ON_PITCH    144
  26. #define NOTE_ON_VEL    145
  27. #define NOTE_ON_RESET    146
  28. #define NOTE_ON_DECAY_RESET    147
  29. #define CHNL_PRES    160
  30. #define CTRL_CHNG    176
  31. #define PROG_CHNG    192
  32. #define AFTERTOUCH    208
  33. #define PITCH_BEND    224
  34. #define SYSEX        240
  35. #define SONG_POS    242
  36. #define SONG_SELECT    243
  37. #define TUNE_REQ    246
  38. #define TIMING_CLOCK    248
  39. #define START        250
  40. #define CONTINUE    251
  41. #define STOP        252
  42. #define ACTIVE_SENSING    254
  43. #define SYSTEM_RESET    255
  44.  
  45.   /*  MIDI controller values  */
  46.  
  47.  
  48. #define MODWHEEL    1
  49. #define BREATH        2
  50. #define FOOTCTRL    4
  51. #define PORTAMENTOTIME    5
  52. #define MAINVOLUME    7
  53. #define BALANCE        8
  54. #define PAN        10
  55. #define EXPRESSION    11
  56. #define SUSTAIN        64
  57. #define PORTAMENTO    65
  58. #define SOSTENUO    66
  59. #define SOFT        67
  60. #define HOLD2        69
  61. #define EXTERNEFFDEPTH    91
  62. #define TREMELODEPTH    92
  63. #define CHORUSDEPTH    93
  64. #define DETUNEDEPTH    94
  65. #define PHASERDEPTH    95
  66.  
  67. #define triangle(mod) wavegen(TRIANGLE, mod)
  68. #define sawtooth(mod) wavegen(SAWTOOTH, mod)
  69. #define pos_triangle(mod) wavegen(POS_TRIANGLE, mod)
  70. #define pos_sawtooth(mod) wavegen(POS_SAWTOOTH, mod)
  71. #define sinewave(mod) sample("sin.tbl", mod, 2, 1)
  72.