Control Surface
1.2.0
MIDI Control Surface library for Arduino
src
MIDI_Outputs
CCRotaryEncoder.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MIDI_Outputs/Abstract/MIDIRotaryEncoder.hpp
>
4
#include <
MIDI_Senders/RelativeCCSender.hpp
>
5
6
BEGIN_CS_NAMESPACE
7
21
class
CCRotaryEncoder
:
public
MIDIRotaryEncoder
<RelativeCCSender> {
22
public
:
49
CCRotaryEncoder
(
const
EncoderPinList
&pins,
const
MIDIAddress
&
address
,
50
int8_t
speedMultiply
= 1, uint8_t
pulsesPerStep
= 4)
51
:
MIDIRotaryEncoder
(pins,
address
,
speedMultiply
,
pulsesPerStep
, {}) {}
52
53
// For tests only (PJRC Encoder library's copy constructor doesn't work)
54
#ifndef ARDUINO
55
CCRotaryEncoder
(
const
Encoder &enc,
const
MIDIAddress
&
address
,
56
int8_t
speedMultiply
, uint8_t
pulsesPerStep
)
57
:
MIDIRotaryEncoder
(enc,
address
,
speedMultiply
,
pulsesPerStep
, {}) {}
58
#endif
59
};
60
61
END_CS_NAMESPACE
MIDIRotaryEncoder.hpp
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition:
MIDIAddress.hpp:91
MIDIRotaryEncoder
An abstract class for rotary encoders that send MIDI events.
Definition:
Abstract/MIDIRotaryEncoder.hpp:19
CCRotaryEncoder::CCRotaryEncoder
CCRotaryEncoder(const EncoderPinList &pins, const MIDIAddress &address, int8_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new CCRotaryEncoder object with the given pins, address, channel, speed factor,...
Definition:
CCRotaryEncoder.hpp:49
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
EncoderPinList
A struct for the pins of a rotary (quadrature) encoder without a switch.
Definition:
Def.hpp:44
MIDIRotaryEncoder< RelativeCCSender >::address
const MIDIAddress address
Definition:
Abstract/MIDIRotaryEncoder.hpp:57
CCRotaryEncoder
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out relat...
Definition:
CCRotaryEncoder.hpp:21
MIDIRotaryEncoder< RelativeCCSender >::pulsesPerStep
const uint8_t pulsesPerStep
Definition:
Abstract/MIDIRotaryEncoder.hpp:59
RelativeCCSender.hpp
Generated by
1.8.19