mdGetStatus(3dm)
mdGetStatus, mdGetChannel, mdGetByte1, mdGetByte2, mdSetStatus, mdSetChannel, mdSetByte1, mdSetByte2 - manipulate MIDI messages
As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.
NAME mdGetStatus, mdGetChannel, mdGetByte1, mdGetByte2, mdSetStatus, mdSetChannel, mdSetByte1, mdSetByte2 - manipulate MIDI messages SYNOPSIS #include <dmedia/midi.h> int mdGetStatus(char *msg) (obsolete) int mdGetChannel(char *msg) (obsolete) int mdGetByte1(char *msg) (obsolete) int mdGetByte2(char *msg) (obsolete) void mdSetStatus(char *msg, int x) (obsolete) void mdSetChannel(char *msg, int x) (obsolete) void mdSetByte1(char *msg, int x) (obsolete) void mdSetByte2(char *msg, int x) (obsolete) DESCRIPTION These routines routines are obsolete and are retained only for backwards compatibility. They can be replaced with the following definitions: #define mdGetStatus(msg) (msg[0] & MD_STATUSMASK) #define mdGetChannel(msg) (msg[0] & MD_CHANNELMASK) #define mdGetByte1(msg) (msg[1]) #define mdGetByte2(msg) (msg[2]) #define mdSetStatus(msg,x) (msg[0] = (x) | mdGetChannel(msg)) #define mdSetChannel(msg,x) (msg[0] = mdGetStatus(msg) | (x)) #define mdSetByte1(msg, x) (msg[1] = (x)) #define mdSetByte2(msg, x) (msg[2] = (x))