2026-11-13 18:31:07 +06:00
|
|
|
#ifndef COMMAND
|
|
|
|
|
#define COMMAND
|
|
|
|
|
|
2026-11-13 23:59:25 +06:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
|
|
enum class CommandType{
|
2026-11-13 18:31:07 +06:00
|
|
|
None,
|
|
|
|
|
NoteOn,
|
2026-11-15 00:47:07 +06:00
|
|
|
NoteOff,
|
|
|
|
|
PitchBend
|
2026-11-13 18:31:07 +06:00
|
|
|
};
|
|
|
|
|
|
2026-11-13 23:59:25 +06:00
|
|
|
struct Command{
|
2026-11-15 00:47:07 +06:00
|
|
|
CommandType type = CommandType::None;
|
|
|
|
|
uint8_t note = 0;
|
|
|
|
|
uint8_t velocity = 0;
|
|
|
|
|
uint16_t pitch_bend = 8192;
|
2026-11-13 23:59:25 +06:00
|
|
|
};
|
|
|
|
|
|
2026-11-13 18:31:07 +06:00
|
|
|
#endif
|