#pragma once #include #include BEGIN_CS_NAMESPACE template class NoteButtonMatrix : public MIDIButtonMatrix { public: NoteButtonMatrix(const PinList &rowPins, const PinList &colPins, const AddressMatrix ¬es, MIDIChannelCable channelCN = {Channel_1, Cable_1}, uint8_t velocity = 0x7F) : MIDIButtonMatrix { rowPins, colPins, notes, channelCN, {velocity}} {} void setVelocity(uint8_t velocity) { this->sender.setVelocity(velocity); } uint8_t getVelocity() const { return this->sender.getVelocity(); } }; END_CS_NAMESPACE