1/*! 2 \file Midi2Defs.h 3 \ingroup midi2 4 \brief Some definitions to define raw MIDI events. 5*/ 6 7 8/*! 9 \name Channel Message Masks 10 \brief Some definitions to define the raw MIDI events. 11 12 The default implementation of BMidiLocalConsumer::Data() uses these 13 constants to determine which event has been passed on. If you override 14 that method, you may use the constants yourself. 15*/ 16 17 18//! @{ 19 20 21/*! 22 \var B_NOTE_OFF 23*/ 24 25 26/*! 27 \var B_NOTE_ON 28*/ 29 30 31/*! 32 \var B_KEY_PRESSURE 33*/ 34 35 36/*! 37 \var B_CONTROL_CHANGE 38*/ 39 40 41/*! 42 \var B_PROGRAM_CHANGE 43*/ 44 45 46/*! 47 \var B_CHANNEL_PRESSURE 48*/ 49 50 51/*! 52 \var B_PITCH_BEND 53*/ 54 55 56//! @} 57 58 59/*! 60 \name System Messages 61 \brief Some definitions to define the raw MIDI system messages. 62 63 The default implementation of BMidiLocalConsumer::Data() uses these 64 constants to determine which event system message has been passed on. 65 See BMidiLocalProducer::SpraySystemCommon() and 66 BMidiLocalProducer::SpraySystemRealTime() for more details on how and 67 when to use these messages. 68*/ 69 70 71//! @{ 72 73 74/*! 75 \var B_SYS_EX_START 76*/ 77 78 79/*! 80 \var B_MIDI_TIME_CODE 81*/ 82 83 84/*! 85 \var B_SONG_POSITION 86*/ 87 88 89/*! 90 \var B_SONG_SELECT 91*/ 92 93 94/*! 95 \var B_CABLE_MESSAGE 96*/ 97 98 99/*! 100 \var B_TUNE_REQUEST 101*/ 102 103 104/*! 105 \var B_SYS_EX_END 106*/ 107 108 109/*! 110 \var B_TIMING_CLOCK 111*/ 112 113 114/*! 115 \var B_START 116*/ 117 118 119/*! 120 \var B_CONTINUE 121*/ 122 123 124/*! 125 \var B_STOP 126*/ 127 128 129/*! 130 \var B_ACTIVE_SENSING 131*/ 132 133 134/*! 135 \var B_SYSTEM_RESET 136*/ 137 138 139//! @} 140 141 142/*! 143 \name Controller Numbers 144 \brief Constants that represent specific controller messages. 145 146 These constants can be used in BMidiLocalProducer::SprayControlChange() 147 and BMidiLocalConsumer::ControlChange(). These constants represent the 148 MIDI specification. 149*/ 150 151 152//! @{ 153 154 155*/ 156 157 158/*! 159 \var B_MODULATION 160*/ 161 162 163/*! 164 \var B_BREATH_CONTROLLER 165*/ 166 167 168/*! 169 \var B_FOOT_CONTROLLER 170*/ 171 172 173/*! 174 \var B_PORTAMENTO_TIME 175*/ 176 177 178/*! 179 \var B_DATA_ENTRY 180*/ 181 182 183/*! 184 \var B_MAIN_VOLUME 185*/ 186 187 188/*! 189 \var B_MIDI_BALANCE 190*/ 191 192 193/*! 194 \var B_PAN 195*/ 196 197 198/*! 199 \var B_EXPRESSION_CTRL 200*/ 201 202 203/*! 204 \var B_GENERAL_CTRL_1 205*/ 206 207 208/*! 209 \var B_GENERAL_CTRL_2 210*/ 211 212 213/*! 214 \var B_GENERAL_CTRL_3 215*/ 216 217 218/*! 219 \var B_GENERAL_CTRL_4 220*/ 221 222 223/*! 224 \var B_SUSTAIN_PEDAL 225*/ 226 227 228/*! 229 \var B_PORTAMENTO 230*/ 231 232 233/*! 234 \var B_SOSTENUTO 235*/ 236 237 238/*! 239 \var B_SOFT_PEDAL 240*/ 241 242 243/*! 244 \var B_HOLD_2 245*/ 246 247 248/*! 249 \var B_GENERAL_CTRL_5 250*/ 251 252 253/*! 254 \var B_GENERAL_CTRL_6 255*/ 256 257 258/*! 259 \var B_TEMPO_CHANGE 260*/ 261 262 263/*! 264 \var B_GENERAL_CTRL_7 265*/ 266 267 268/*! 269 \var B_GENERAL_CTRL_8 270*/ 271 272 273/*! 274 \var B_EFFECTS_DEPTH 275*/ 276 277 278/*! 279 \var B_TREMOLO_DEPTH 280*/ 281 282 283/*! 284 \var B_CHORUS_DEPTH 285*/ 286 287 288/*! 289 \var B_CELESTE_DEPTH 290*/ 291 292 293/*! 294 \var B_PHASER_DEPTH 295*/ 296 297 298/*! 299 \var B_DATA_INCREMENT 300*/ 301 302 303/*! 304 \var B_DATA_DECREMENT 305*/ 306 307 308/*! 309 \var B_RESET_ALL_CONTROLLERS 310*/ 311 312 313/*! 314 \var B_LOCAL_CONTROL 315*/ 316 317 318/*! 319 \var B_ALL_NOTES_OFF 320*/ 321 322 323/*! 324 \var B_OMNI_MODE_OFF 325*/ 326 327 328/*! 329 \var B_OMNI_MODE_ON 330*/ 331 332 333/*! 334 \var B_MONO_MODE_ON 335*/ 336 337 338/*! 339 \var B_POLY_MODE_ON 340*/ 341 342 343//! @} 344