Control Surface  1.1.1
MIDI Control Surface library for Arduino
CCRotaryEncoder.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
21 class CCRotaryEncoder : public MIDIRotaryEncoder<RelativeCCSender> {
22  public:
53  int8_t speedMultiply = 1, uint8_t pulsesPerStep = 4,
54  const RelativeCCSender &sender = {})
56  sender) {}
57 
58 // For tests only (PJRC Encoder library's copy constructor doesn't work)
59 #ifndef ARDUINO
60  CCRotaryEncoder(const Encoder &encoder, const MIDICNChannelAddress &address,
61  int8_t speedMultiply, uint8_t pulsesPerStep,
62  const RelativeCCSender &sender = {})
64  sender) {}
65 #endif
66 };
67 
MIDIRotaryEncoder.hpp
MIDIRotaryEncoder
An abstract class for rotary encoders that send MIDI events.
Definition: Abstract/MIDIRotaryEncoder.hpp:19
MIDIRotaryEncoder< RelativeCCSender >::encoder
Encoder encoder
Definition: Abstract/MIDIRotaryEncoder.hpp:56
MIDIRotaryEncoder< RelativeCCSender >::MIDIRotaryEncoder
MIDIRotaryEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, int8_t speedMultiply, uint8_t pulsesPerStep, const RelativeCCSender &sender)
Construct a new MIDIRotaryEncoder.
Definition: Abstract/MIDIRotaryEncoder.hpp:26
CCRotaryEncoder::CCRotaryEncoder
CCRotaryEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, int8_t speedMultiply=1, uint8_t pulsesPerStep=4, const RelativeCCSender &sender={})
Construct a new CCRotaryEncoder object with the given pins, address, channel, speed factor,...
Definition: CCRotaryEncoder.hpp:51
MIDIRotaryEncoder< RelativeCCSender >::speedMultiply
const int8_t speedMultiply
Definition: Abstract/MIDIRotaryEncoder.hpp:58
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:9
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
MIDICNChannelAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition: MIDICNChannelAddress.hpp:82
CCRotaryEncoder
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out relat...
Definition: CCRotaryEncoder.hpp:21
MIDIRotaryEncoder< RelativeCCSender >::sender
RelativeCCSender sender
Definition: Abstract/MIDIRotaryEncoder.hpp:63
MIDIRotaryEncoder< RelativeCCSender >::pulsesPerStep
const uint8_t pulsesPerStep
Definition: Abstract/MIDIRotaryEncoder.hpp:59
RelativeCCSender.hpp
MIDIRotaryEncoder< RelativeCCSender >::address
const MIDICNChannelAddress address
Definition: Abstract/MIDIRotaryEncoder.hpp:57
EncoderPinList
A struct for the pins of a rotary (quadrature) encoder without a switch.
Definition: Def.hpp:44
RelativeCCSender
Definition: RelativeCCSender.hpp:65