18 lines
532 B
C++
18 lines
532 B
C++
#pragma once
|
|
|
|
#include <MIDI_Outputs/Abstract/MIDIButtonLatching.hpp>
|
|
#include <MIDI_Senders/DigitalNoteSender.hpp>
|
|
|
|
BEGIN_CS_NAMESPACE
|
|
|
|
class NoteButtonLatching : public MIDIButtonLatching<DigitalNoteSender> {
|
|
public:
|
|
NoteButtonLatching(pin_t pin, MIDIAddress address, uint8_t velocity = 0x7F)
|
|
: MIDIButtonLatching {pin, address, {velocity}} {}
|
|
|
|
void setVelocity(uint8_t velocity) { this->sender.setVelocity(velocity); }
|
|
uint8_t getVelocity() const { return this->sender.getVelocity(); }
|
|
};
|
|
|
|
END_CS_NAMESPACE
|