aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidimappers.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-07 23:39:02 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-07 23:39:02 +0800
commit8f8782f43bd838e825f3792b611d27fffa90399b (patch)
tree1fbd96dd7ce061010edacf67f72f0ffb07889edf /core/qmpmidimappers.hpp
parent70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (diff)
downloadQMidiPlayer-8f8782f43bd838e825f3792b611d27fffa90399b.tar.xz
Lunatic Princess.
Diffstat (limited to 'core/qmpmidimappers.hpp')
-rw-r--r--core/qmpmidimappers.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/qmpmidimappers.hpp b/core/qmpmidimappers.hpp
new file mode 100644
index 0000000..156caaa
--- /dev/null
+++ b/core/qmpmidimappers.hpp
@@ -0,0 +1,23 @@
+#ifndef QMPMIDIMAPPERS_H
+#define QMPMIDIMAPPERS_H
+#include "RtMidi.h"
+class qmpMidiMapperRtMidi
+{
+private:
+ RtMidiOut *ports[16];
+ static RtMidiOut *dummy;
+public:
+ qmpMidiMapperRtMidi();
+ ~qmpMidiMapperRtMidi();
+ int deviceInit(int id);
+ void deviceDeinit(int iid);
+ void noteOn(int iid,int ch,int key,int vel);
+ void noteOff(int iid,int ch,int key);
+ void ctrlChange(int iid,int ch,int cc,int val);
+ void progChange(int iid,int ch,int val);
+ void pitchBend(int iid,int ch,int val);
+ void sysEx(int iid,int length,const char* data);
+ int enumDevices();
+ std::string deviceName(int id);
+};
+#endif // QMPMIDIMAPPERS_H