MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
3 #if not defined(Encoder_h_) && not defined(IDE)
5 "The PJRC Encoder library should be included before the Control-Surface " \
6 "library. (#include <Encoder.h>)"
22 template <
class Sender>
54 long currentPosition =
encoder.read();
MIDIRotaryEncoder(const OutputBankConfig &config, const EncoderPinList &pins, const MIDICNChannelAddress &address, uint8_t speedMultiply, uint8_t pulsesPerStep, const Sender &sender)
Construct a new MIDIRotaryEncoder.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
const uint8_t speedMultiply
#define BEGIN_CS_NAMESPACE
void update() final override
Update this updatable.
void begin() final override
Initialize this updatable.
uint8_t B
The pin connected to the B pin of the encoder.
const uint8_t pulsesPerStep
An abstract class for rotary encoders that send MIDI events and that can be added to a Bank.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
uint8_t A
The pin connected to the A pin of the encoder.
A struct for the pins of a rotary (quadrature) encoder without a switch.
const MIDICNChannelAddress address
RelativeMIDICNChannelAddress getAddressOffset() const
Get the offset relative to the base address.
A struct for selecting the bank of BankableMIDIOutputs and the bank type.
A base class for all MIDIOutputElements that can be banked.