From 8f8782f43bd838e825f3792b611d27fffa90399b Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 7 Apr 2016 23:39:02 +0800 Subject: Lunatic Princess. --- core/qmpmidimappers.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 core/qmpmidimappers.hpp (limited to 'core/qmpmidimappers.hpp') 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 -- cgit v1.2.3