теперь работает MIDI Pitch Bend с диапазоном +- 2 полутона
This commit is contained in:
+6
-4
@@ -6,13 +6,15 @@
|
||||
enum class CommandType{
|
||||
None,
|
||||
NoteOn,
|
||||
NoteOff
|
||||
NoteOff,
|
||||
PitchBend
|
||||
};
|
||||
|
||||
struct Command{
|
||||
CommandType type;
|
||||
uint8_t note;
|
||||
uint8_t velocity;
|
||||
CommandType type = CommandType::None;
|
||||
uint8_t note = 0;
|
||||
uint8_t velocity = 0;
|
||||
uint16_t pitch_bend = 8192;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user