LMMS
Loading...
Searching...
No Matches
midicode.h
Go to the documentation of this file.
1/************************************************************************
2*
3* Midi codes
4* Copyright 1989 Carnegie Mellon University
5*
6*************************************************************************
7* Change Log
8* Date | Change
9*-----------+------------------------------------------------------------
10* 11-Mar-94 | PLu : Port to IRI
11************************************************************************/
12
13#define MIDI_DATA(d) (0x7f & (d))
14#define MIDI_CHANNEL(c) (0x0f & ((c) - 1))
15#define MIDI_PORT(c) (((c) - 1) >> 4)
16#define MIDI_PROGRAM(p) MIDI_DATA((p) - 1)
17
18#define MIDI_STATUS_BIT 0x80
19#define MIDI_COMMON 0x70
20#define MIDI_CODE_MASK 0xf0
21#define MIDI_CHN_MASK 0x0f
22#define MIDI_REALTIME 0xf8
23#define MIDI_CHAN_MODE 0xfa
24
25#define MIDI_OFF_NOTE 0x80
26#define MIDI_ON_NOTE 0x90
27#define MIDI_POLY_TOUCH 0xa0
28#define MIDI_CTRL 0xb0
29#define MIDI_CH_PROGRAM 0xc0
30#define MIDI_TOUCH 0xd0
31#define MIDI_BEND 0xe0
32
33#ifdef UNIX_IRIX_MIDIFNS
34#define CMT_MIDI_SYSEX 0xf0
35#define CMT_MIDI_EOX 0xf7
36#else
37#define MIDI_SYSEX 0xf0
38#define MIDI_EOX 0xf7
39#endif
40#define MIDI_Q_FRAME 0xf1
41#define MIDI_SONG_POINTER 0xf2
42#define MIDI_SONG_SELECT 0xf3
43#define MIDI_F4 0xf4
44#define MIDI_F5 0xf5
45#define MIDI_TUNE_REQ 0xf6
46#define MIDI_TIME_CLOCK 0xf8
47#define MIDI_F9 0xf9
48#define MIDI_START 0xfa
49#define MIDI_CONTINUE 0xfb
50#define MIDI_STOP 0xfc
51#define MIDI_FD 0xfd
52#define MIDI_ACTIVE_SENSING 0xfe
53#define MIDI_SYS_RESET 0xff
54
55#define MIDI_LOCAL 0x7a
56#define MIDI_LOCAL_OFF 0x00
57#define MIDI_LOCAL_ON 0x7f
58#define MIDI_ALL_OFF 0x7b
59#define MIDI_OMNI_OFF 0x7c
60#define MIDI_OMNI_ON 0x7d
61#define MIDI_MONO_ON 0x7e
62#define MIDI_POLY_ON 0x7f