aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidimappers.hpp
blob: 7b9ff0eda34294a37b30d91de0cc44e2f3ae02d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef QMPMIDIMAPPERS_H
#define QMPMIDIMAPPERS_H
#include RT_MIDI_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);
	void panic(int iid,int ch);
	void reset(int iid,int ch);
	int enumDevices();
	std::string deviceName(int id);
};
#endif // QMPMIDIMAPPERS_H