xref: /haiku/docs/user/midi2/Midi2Defs.dox (revision 899e0ef82b5624ace2ccfa5f5a58c8ebee54aaef)
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	\brief Identifier of note off message.
24*/
25
26
27/*!
28	\var B_NOTE_ON
29	\brief Identifier of note on message.
30*/
31
32
33/*!
34	\var B_KEY_PRESSURE
35	\brief Identifier of key pressure message.
36*/
37
38
39/*!
40	\var B_CONTROL_CHANGE
41	\brief Identifier of control change message.
42*/
43
44
45/*!
46	\var B_PROGRAM_CHANGE
47	\brief Identifier of program change message.
48*/
49
50
51/*!
52	\var B_CHANNEL_PRESSURE
53	\brief Identifier of channel pressure message.
54*/
55
56
57/*!
58	\var B_PITCH_BEND
59	\brief Identifier of pitch bend message.
60*/
61
62
63//! @}
64
65
66/*!
67	\name System Messages
68	\brief Some definitions to define the raw MIDI system messages.
69
70	The default implementation of BMidiLocalConsumer::Data() uses these
71	constants to determine which event system message has been passed on.
72	See  BMidiLocalProducer::SpraySystemCommon() and
73	BMidiLocalProducer::SpraySystemRealTime() for more details on how and
74	when to use these messages.
75*/
76
77
78//! @{
79
80
81/*!
82	\var B_SYS_EX_START
83	\brief Identifier of system exclusive start message.
84*/
85
86
87/*!
88	\var B_MIDI_TIME_CODE
89	\brief Identifier of midi time code message.
90*/
91
92
93/*!
94	\var B_SONG_POSITION
95	\brief Identifier of song position message.
96*/
97
98
99/*!
100	\var B_SONG_SELECT
101	\brief Identifier of song select message.
102*/
103
104
105/*!
106	\var B_CABLE_MESSAGE
107	\brief Identifier of cable message.
108*/
109
110
111/*!
112	\var B_TUNE_REQUEST
113	\brief Identifier of tune request message.
114*/
115
116
117/*!
118	\var B_SYS_EX_END
119	\brief Identifier of system exclusive end message.
120*/
121
122
123/*!
124	\var B_TIMING_CLOCK
125	\brief Identifier of timing clock message.
126*/
127
128
129/*!
130	\var B_START
131	\brief Identifier of start message.
132*/
133
134
135/*!
136	\var B_CONTINUE
137	\brief Identifier of continue message.
138*/
139
140
141/*!
142	\var B_STOP
143	\brief Identifier of stop message.
144*/
145
146
147/*!
148	\var B_ACTIVE_SENSING
149	\brief Identifier of active sensing message.
150*/
151
152
153/*!
154	\var B_SYSTEM_RESET
155	\brief Identifier of system reset message.
156*/
157
158
159//! @}
160
161
162/*!
163	\name Controller Numbers
164	\brief Constants that represent specific controller messages.
165
166	These constants can be used in BMidiLocalProducer::SprayControlChange()
167	and BMidiLocalConsumer::ControlChange(). These constants represent the
168	MIDI specification.
169*/
170
171
172//! @{
173
174
175/*!
176	\var B_MODULATION
177	\brief Identifier of modulation message.
178*/
179
180
181/*!
182	\var B_BREATH_CONTROLLER
183	\brief Identifier of breath controller message.
184*/
185
186
187/*!
188	\var B_FOOT_CONTROLLER
189	\brief Identifier of foot controller message.
190*/
191
192
193/*!
194	\var B_PORTAMENTO_TIME
195	\brief Identifier of portamento time message.
196*/
197
198
199/*!
200	\var B_DATA_ENTRY
201	\brief Identifier of data entry message.
202*/
203
204
205/*!
206	\var B_MAIN_VOLUME
207	\brief Identifier of main volume message.
208*/
209
210
211/*!
212	\var B_MIDI_BALANCE
213	\brief Identifier of MIDI balance message.
214*/
215
216
217/*!
218	\var B_PAN
219	\brief Identifier of pan message.
220*/
221
222
223/*!
224	\var B_EXPRESSION_CTRL
225	\brief Identifier of expression control message.
226*/
227
228
229/*!
230	\var B_GENERAL_CTRL_1
231	\brief Identifier of general control 1 message.
232*/
233
234
235/*!
236	\var B_GENERAL_CTRL_2
237	\brief Identifier of general control 2 message.
238*/
239
240
241/*!
242	\var B_GENERAL_CTRL_3
243	\brief Identifier of general control 3 message.
244*/
245
246
247/*!
248	\var B_GENERAL_CTRL_4
249	\brief Identifier of general control 4 message.
250*/
251
252
253/*!
254	\var B_SUSTAIN_PEDAL
255	\brief Identifier of sustain pedal message.
256*/
257
258
259/*!
260	\var B_PORTAMENTO
261	\brief Identifier of portamento message.
262*/
263
264
265/*!
266	\var B_SOSTENUTO
267	\brief Identifier of sostenuto message.
268*/
269
270
271/*!
272	\var B_SOFT_PEDAL
273	\brief Identifier of soft pedal message.
274*/
275
276
277/*!
278	\var B_HOLD_2
279	\brief Identifier of hold 2 message.
280*/
281
282
283/*!
284	\var B_GENERAL_CTRL_5
285	\brief Identifier of general control 5 message.
286*/
287
288
289/*!
290	\var B_GENERAL_CTRL_6
291	\brief Identifier of general control 6 message.
292*/
293
294
295/*!
296	\var B_TEMPO_CHANGE
297	\brief Identifier of tempo change message.
298*/
299
300
301/*!
302	\var B_GENERAL_CTRL_7
303	\brief Identifier of general control 7 message.
304*/
305
306
307/*!
308	\var B_GENERAL_CTRL_8
309	\brief Identifier of general control 8 message.
310*/
311
312
313/*!
314	\var B_EFFECTS_DEPTH
315	\brief Identifier of effects depth message.
316*/
317
318
319/*!
320	\var B_TREMOLO_DEPTH
321	\brief Identifier of tremelo depth message.
322*/
323
324
325/*!
326	\var B_CHORUS_DEPTH
327	\brief Identifier of chorus depth message.
328*/
329
330
331/*!
332	\var B_CELESTE_DEPTH
333	\brief Identifier of celeste depth message.
334*/
335
336
337/*!
338	\var B_PHASER_DEPTH
339	\brief Identifier of phaser depth message.
340*/
341
342
343/*!
344	\var B_DATA_INCREMENT
345	\brief Identifier of data increment message.
346*/
347
348
349/*!
350	\var B_DATA_DECREMENT
351	\brief Identifier of data decrement message.
352*/
353
354
355/*!
356	\var B_RESET_ALL_CONTROLLERS
357	\brief Identifier of reset all controllers message.
358*/
359
360
361/*!
362	\var B_LOCAL_CONTROL
363	\brief Identifier of local control message.
364*/
365
366
367/*!
368	\var B_ALL_NOTES_OFF
369	\brief Identifier of all notes off message.
370*/
371
372
373/*!
374	\var B_OMNI_MODE_OFF
375	\brief Identifier of omni mode off message.
376*/
377
378
379/*!
380	\var B_OMNI_MODE_ON
381	\brief Identifier of omni mode on message.
382*/
383
384
385/*!
386	\var B_MONO_MODE_ON
387	\brief Identifier of mono mode on message.
388*/
389
390
391/*!
392	\var B_POLY_MODE_ON
393	\brief Identifier of poly mode on message.
394*/
395
396
397//! @}
398