cs-midi/MIDI_Outputs/CCRotaryEncoder.hpp

27 lines
904 B
C++

#pragma once
#include <MIDI_Outputs/Abstract/MIDIRotaryEncoder.hpp>
#include <MIDI_Senders/RelativeCCSender.hpp>
BEGIN_CS_NAMESPACE
class CCRotaryEncoder : public MIDIRotaryEncoder<RelativeCCSender> {
public:
CCRotaryEncoder(AHEncoder &&encoder, MIDIAddress address,
int16_t speedMultiply = 1, uint8_t pulsesPerStep = 4)
: MIDIRotaryEncoder<RelativeCCSender>(
std::move(encoder), address, speedMultiply, pulsesPerStep, {}) {}
};
class BorrowedCCRotaryEncoder
: public BorrowedMIDIRotaryEncoder<RelativeCCSender> {
public:
BorrowedCCRotaryEncoder(AHEncoder &encoder, MIDIAddress address,
int16_t speedMultiply = 1,
uint8_t pulsesPerStep = 4)
: BorrowedMIDIRotaryEncoder<RelativeCCSender>(
encoder, address, speedMultiply, pulsesPerStep, {}) {}
};
END_CS_NAMESPACE