#pragma once #include BEGIN_CS_NAMESPACE class DigitalNoteSender { public: DigitalNoteSender(uint8_t velocity = 0x7F) : velocity(velocity) {} void sendOn(MIDIAddress address) { Control_Surface.sendNoteOn(address, getVelocity()); } void sendOff(MIDIAddress address) { Control_Surface.sendNoteOff(address, 0x7F); } void setVelocity(uint8_t velocity) { this->velocity = velocity; } uint8_t getVelocity() const { return this->velocity; } private: uint8_t velocity; }; END_CS_NAMESPACE