38 lines
649 B
C++
38 lines
649 B
C++
|
|
#ifndef COMMAND
|
||
|
|
#define COMMAND
|
||
|
|
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
|
enum class CommandType{
|
||
|
|
None,
|
||
|
|
NoteOn,
|
||
|
|
NoteOff,
|
||
|
|
PitchBend,
|
||
|
|
ModWheel,
|
||
|
|
SetUnisonVoices,
|
||
|
|
SetStereoSpread,
|
||
|
|
SetDetuneAmount,
|
||
|
|
SetUnisonGain,
|
||
|
|
SetWavetableSin,
|
||
|
|
SetWavetableSaw,
|
||
|
|
SetWavetableSquare,
|
||
|
|
SetWavetableTriangle,
|
||
|
|
SetFilterCutOff,
|
||
|
|
SetFilterResonance,
|
||
|
|
SetFilterOff,
|
||
|
|
SetLowPassFilter,
|
||
|
|
SetBandPassFilter,
|
||
|
|
SetHighPassFilter
|
||
|
|
};
|
||
|
|
|
||
|
|
struct Command{
|
||
|
|
CommandType type = CommandType::None;
|
||
|
|
uint8_t note = 0;
|
||
|
|
uint8_t velocity = 0;
|
||
|
|
uint16_t pitch_bend = 8192;
|
||
|
|
uint8_t mod_wheel = 0;
|
||
|
|
double value = 0.0;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|