This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
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  uint8_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  uint8_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:20
MIDIRotaryEncoder< RelativeCCSender >::speedMultiply
const uint8_t speedMultiply
Definition: Abstract/MIDIRotaryEncoder.hpp:59
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
MIDICNChannelAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition: MIDICNChannelAddress.hpp:82
MIDIRotaryEncoder< RelativeCCSender >::sender
RelativeCCSender sender
Definition: Abstract/MIDIRotaryEncoder.hpp:64
MIDIRotaryEncoder< RelativeCCSender >::encoder
Encoder encoder
Definition: Abstract/MIDIRotaryEncoder.hpp:57
MIDIRotaryEncoder< RelativeCCSender >::pulsesPerStep
const uint8_t pulsesPerStep
Definition: Abstract/MIDIRotaryEncoder.hpp:60
CCRotaryEncoder
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out relat...
Definition: CCRotaryEncoder.hpp:21
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
RelativeCCSender.hpp
CCRotaryEncoder::CCRotaryEncoder
CCRotaryEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, uint8_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
EncoderPinList
A struct for the pins of a rotary (quadrature) encoder without a switch.
Definition: Def.hpp:57
RelativeCCSender
Definition: RelativeCCSender.hpp:65
MIDIRotaryEncoder< RelativeCCSender >::MIDIRotaryEncoder
MIDIRotaryEncoder(const EncoderPinList &pins, const MIDICNChannelAddress &address, uint8_t speedMultiply, uint8_t pulsesPerStep, const RelativeCCSender &sender)
Construct a new MIDIRotaryEncoder.
Definition: Abstract/MIDIRotaryEncoder.hpp:27
MIDIRotaryEncoder< RelativeCCSender >::address
const MIDICNChannelAddress address
Definition: Abstract/MIDIRotaryEncoder.hpp:58