-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemCommonEvent.h
66 lines (56 loc) · 1.57 KB
/
SystemCommonEvent.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Created by madsy on 19.03.17.
//
#ifndef MIDITEST_SYSTEMCOMMONEVENT_H
#define MIDITEST_SYSTEMCOMMONEVENT_H
#include <vector>
#include "MidiEvent.h"
class SysCmnEvtExclusive : public MidiEvent {
friend class MidiEventFactory;
public:
int getManufacturerID() const;
const std::vector<unsigned char>& getData() const;
void print() override;
protected:
SysCmnEvtExclusive(unsigned int timestamp, int manufacturer_code, const std::vector<unsigned char>& data);
private:
int pManufacturerCode;
std::vector<unsigned char> pData;
};
class SysCmnEvtSongPositionCounter : public MidiEvent {
friend class MidiEventFactory;
public:
int getSongPosition() const;
void print() override;
protected:
SysCmnEvtSongPositionCounter(unsigned int timestamp, int pos);
private:
int pPosition;
};
class SysCmnEvtSongSelect : public MidiEvent {
friend class MidiEventFactory;
public:
int getSongID() const;
void print() override;
protected:
SysCmnEvtSongSelect(unsigned int timestamp, int songid);
private:
int pSongID;
};
//Oscillators should be tunes. No data in this class.
class SysCmnEvtTuneRequest : public MidiEvent {
friend class MidiEventFactory;
public:
void print() override;
protected:
SysCmnEvtTuneRequest(unsigned int timestamp);
};
//Marks the end of an exclusive message. No data in this class.
class SysCmnEvtEndExclusive : public MidiEvent {
friend class MidiEventFactory;
public:
void print() override;
protected:
SysCmnEvtEndExclusive(unsigned int timestamp);
};
#endif //MIDITEST_SYSTEMCOMMONEVENT_H