aboutsummaryrefslogtreecommitdiff
path: root/qmpimidimapper.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-31 21:03:23 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-31 21:03:23 +0800
commit20283f4c5629f659d05ba18475492c43163bb16e (patch)
tree34d2b63da62b730ff37f9a84efc23baf6e0329b5 /qmpimidimapper.hpp
parent24481b4334db3c45041db53503a7b6832deb704f (diff)
downloadQMidiPlayer-20283f4c5629f659d05ba18475492c43163bb16e.tar.xz
Waltzing Matilda.
Diffstat (limited to 'qmpimidimapper.hpp')
-rw-r--r--qmpimidimapper.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qmpimidimapper.hpp b/qmpimidimapper.hpp
new file mode 100644
index 0000000..d35dbb9
--- /dev/null
+++ b/qmpimidimapper.hpp
@@ -0,0 +1,16 @@
+#ifndef QMPIMIDIMAPPER_H
+#define QMPIMIDIMAPPER_H
+class qmpIMidiMapper
+{
+ virtual void deviceInit(int id)=0;
+ virtual void deviceDeinit(int id)=0;
+ virtual void noteOn(int ch,int key,int vel)=0;
+ virtual void noteOff(int ch,int key)=0;
+ virtual void ctrlChange(int ch,int cc,int val)=0;
+ virtual void progChange(int ch,int val)=0;
+ virtual void pitchBend(int ch,int val)=0;
+ virtual void sysEx(int length,const char* data)=0;
+ virtual static int enumDevices()=0;
+ virtual static char* deviceName(int id)=0;
+};
+#endif // QMPIMIDIMAPPER_H