21 lines
659 B
C++
21 lines
659 B
C++
#pragma once
|
|
|
|
#include <MIDI_Outputs/Abstract/MIDIChordButton.hpp>
|
|
#include <MIDI_Senders/DigitalNoteSender.hpp>
|
|
|
|
BEGIN_CS_NAMESPACE
|
|
|
|
class NoteChordButton : public MIDIChordButton<DigitalNoteSender> {
|
|
public:
|
|
template <uint8_t N>
|
|
NoteChordButton(pin_t pin, MIDIAddress address, Chord<N> chord,
|
|
uint8_t velocity = 0x7F)
|
|
: MIDIChordButton<DigitalNoteSender>(pin, address, std::move(chord),
|
|
{velocity}) {}
|
|
|
|
void setVelocity(uint8_t velocity) { this->sender.setVelocity(velocity); }
|
|
uint8_t getVelocity() const { return this->sender.getVelocity(); }
|
|
};
|
|
|
|
END_CS_NAMESPACE
|