home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Sensations!
/
sound_sensations.iso
/
midifile
/
cmtcmu
/
midicode.h
< prev
next >
Wrap
Text File
|
1990-06-28
|
552b
|
20 lines
/****************************************************************************
*
* Midi codes
*
****************************************************************************/
#define MIDI_DATA(d) (0x7f & (d))
#define MIDI_CHANNEL(c) (0x0f & ((c) - 1))
#define MIDI_PROGRAM(p) MIDI_DATA((p) - 1)
#define MIDI_CODE_MASK 0xf0
#define MIDI_CHN_MASK 0x0f
#define MIDI_OFF_NOTE 0x80
#define MIDI_ON_NOTE 0x90
#define MIDI_CTRL 0xb0
#define MIDI_CH_PROGRAM 0xc0
#define MIDI_TOUCH 0xd0
#define MIDI_BEND 0xe0
#define MIDI_EOX 0xF7