Kaynağa Gözat

cmMidiFile.h : Added cmMidiFileIs???() macros.

master
kevin 8 yıl önce
ebeveyn
işleme
ade31a2e79
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 9
    1
      cmMidiFile.h

+ 9
- 1
cmMidiFile.h Dosyayı Görüntüle

@@ -88,6 +88,13 @@ extern "C" {
88 88
     } u;
89 89
   } cmMidiTrackMsg_t;
90 90
 
91
+#define cmMidiFileIsNoteOn(m)         (cmMidiIsNoteOn((m)->status) && (m)->u.chMsgPtr->d1>0)
92
+#define cmMidiFileIsNoteOff(m)        (cmMidiIsNoteOff((m)->status,(m)->u.chMsgPtr->d1))
93
+#define cmMidiFileIsSustainPedal(m)   (cmMidiIsSustainPedal((m)->status,(m)->u.chMsgPtr->d0))
94
+#define cmMidiFileIsSostenutoPedal(m) (cmMidiIsSostenutoPedal((m)->status,(m)->u.chMsgPtr->d0))
95
+#define cmMidiFileIsPedalDown(m)      (cmMidiIsPedalDown((m)->status, (m)->u.chMsgPtr->d0, (m)->u.chMsgPtr->d1))
96
+#define cmMidiFileIsPedalUp(m)        (cmMidiIsPedalUp(  (m)->status, (m)->u.chMsgPtr->d0, (m)->u.chMsgPtr->d1))  
97
+  
91 98
   enum
92 99
   {
93 100
     kOkMfRC = cmOkRC,    //  0
@@ -101,7 +108,8 @@ extern "C" {
101 108
     kMissingNoteOffMfRC, //  8
102 109
     kInvalidStatusMfRC,  //  9
103 110
     kSustainPedalMfRC,   // 10
104
-    kLargeDeltaTickMfRC  // 11 (a large delta tick value was filtered)
111
+    kSostenutoPedalMfRC, // 11
112
+    kLargeDeltaTickMfRC  // 12 (a large delta tick value was filtered)
105 113
   };
106 114
 
107 115
   extern cmMidiFileH_t cmMidiFileNullHandle;

Loading…
İptal
Kaydet