Control Surface master
MIDI Control Surface library for Arduino
ManyAddresses/CCRotaryEncoder.hpp
Go to the documentation of this file.
1#pragma once
2
6
8
9namespace Bankable {
10namespace ManyAddresses {
11
25template <setting_t NumBanks>
27 : public MIDIRotaryEncoder<ManyAddresses<NumBanks>, RelativeCCSender> {
28 public:
56 const Array<MIDIAddress, NumBanks> &addresses,
57 int16_t speedMultiply = 1, uint8_t pulsesPerStep = 4)
59 {bank, addresses}, std::move(encoder), speedMultiply,
60 pulsesPerStep, {}) {}
61};
62
63} // namespace ManyAddresses
64} // namespace Bankable
65
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
A class that groups Bankable MIDI Output Elements and Bankable MIDI Input Elements,...
Definition: Bank.hpp:91
An abstract class for rotary encoders that send MIDI events and that can be added to a Bank.
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out relat...
CCRotaryEncoder(const Bank< NumBanks > &bank, Encoder &&encoder, const Array< MIDIAddress, NumBanks > &addresses, int16_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new Bankable CCRotaryEncoder object with the given pins, controller, channel,...
Class for reading quadrature encoders, based on http://www.pjrc.com/teensy/td_libs_Encoder....
Definition: Encoder.h:59
Class that sends relative/incremental MIDI control change messages.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
remove_reference< T >::type && move(T &&t)
Definition: move.h:16
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:36