2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
10 #include "camd_intern.h"
12 WORD
MidiMsgType_status(UBYTE status
){
15 if(status
>=0xf8) return CMB_RealTime
;
16 if(status
==0xf0) return CMB_SysEx
;
32 return 0xff; // Never reached. (hopefully)
35 WORD
MidiMsgType_CMB_Ctrl(UBYTE data1
){
36 if(data1
<32) return CMB_CtrlMSB
;
37 if(data1
<64) return CMB_CtrlLSB
;
38 if(data1
<80) return CMB_CtrlSwitch
;
39 if(data1
<96) return CMB_CtrlByte
;
40 if(data1
<102) return CMB_CtrlParam
;
41 if(data1
<120) return CMB_CtrlUndef
;
45 WORD
MidiMsgType_status_data1(UBYTE status
,UBYTE data1
){
46 WORD ret
=MidiMsgType_status(status
);
48 return MidiMsgType_CMB_Ctrl(data1
);