cmMidiFile.h : Added cmMidiFileIs???() macros.
This commit is contained in:
parent
2bc195a625
commit
ade31a2e79
10
cmMidiFile.h
10
cmMidiFile.h
@ -88,6 +88,13 @@ extern "C" {
|
||||
} u;
|
||||
} cmMidiTrackMsg_t;
|
||||
|
||||
#define cmMidiFileIsNoteOn(m) (cmMidiIsNoteOn((m)->status) && (m)->u.chMsgPtr->d1>0)
|
||||
#define cmMidiFileIsNoteOff(m) (cmMidiIsNoteOff((m)->status,(m)->u.chMsgPtr->d1))
|
||||
#define cmMidiFileIsSustainPedal(m) (cmMidiIsSustainPedal((m)->status,(m)->u.chMsgPtr->d0))
|
||||
#define cmMidiFileIsSostenutoPedal(m) (cmMidiIsSostenutoPedal((m)->status,(m)->u.chMsgPtr->d0))
|
||||
#define cmMidiFileIsPedalDown(m) (cmMidiIsPedalDown((m)->status, (m)->u.chMsgPtr->d0, (m)->u.chMsgPtr->d1))
|
||||
#define cmMidiFileIsPedalUp(m) (cmMidiIsPedalUp( (m)->status, (m)->u.chMsgPtr->d0, (m)->u.chMsgPtr->d1))
|
||||
|
||||
enum
|
||||
{
|
||||
kOkMfRC = cmOkRC, // 0
|
||||
@ -101,7 +108,8 @@ extern "C" {
|
||||
kMissingNoteOffMfRC, // 8
|
||||
kInvalidStatusMfRC, // 9
|
||||
kSustainPedalMfRC, // 10
|
||||
kLargeDeltaTickMfRC // 11 (a large delta tick value was filtered)
|
||||
kSostenutoPedalMfRC, // 11
|
||||
kLargeDeltaTickMfRC // 12 (a large delta tick value was filtered)
|
||||
};
|
||||
|
||||
extern cmMidiFileH_t cmMidiFileNullHandle;
|
||||
|
Loading…
Reference in New Issue
Block a user