Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
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
17
class
CCRotaryEncoder
:
public
MIDIRotaryEncoder
<RelativeCCSender> {
18
public
:
46
CCRotaryEncoder
(
AHEncoder
&&
encoder
,
MIDIAddress
address
,
47
int16_t speedMultiply = 1, uint8_t pulsesPerStep = 4)
48
:
MIDIRotaryEncoder
<
RelativeCCSender
>(
49
std::move(
encoder
),
address
, speedMultiply, pulsesPerStep, {}) {}
50
};
51
62
class
BorrowedCCRotaryEncoder
63
:
public
BorrowedMIDIRotaryEncoder
<RelativeCCSender> {
64
public
:
89
BorrowedCCRotaryEncoder
(
AHEncoder
&
encoder
,
MIDIAddress
address
,
90
int16_t speedMultiply = 1,
91
uint8_t pulsesPerStep = 4)
92
:
BorrowedMIDIRotaryEncoder
<
RelativeCCSender
>(
93
encoder
,
address
, speedMultiply, pulsesPerStep, {}) {}
94
};
95
96
END_CS_NAMESPACE
MIDIRotaryEncoder.hpp
BorrowedMIDIRotaryEncoder
GenericMIDIRotaryEncoder< AHEncoder &, Sender > BorrowedMIDIRotaryEncoder
Definition
Abstract/MIDIRotaryEncoder.hpp:71
MIDIRotaryEncoder
GenericMIDIRotaryEncoder< AHEncoder, Sender > MIDIRotaryEncoder
Definition
Abstract/MIDIRotaryEncoder.hpp:68
RelativeCCSender.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:14
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:11
AHEncoder
Class for reading quadrature encoders, heavily influenced by http://www.pjrc.com/teensy/td_libs_Encod...
Definition
AHEncoder.hpp:24
BorrowedCCRotaryEncoder::BorrowedCCRotaryEncoder
BorrowedCCRotaryEncoder(AHEncoder &encoder, MIDIAddress address, int16_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new CCRotaryEncoder object with the given pins, address, channel, speed factor,...
Definition
CCRotaryEncoder.hpp:89
CCRotaryEncoder::CCRotaryEncoder
CCRotaryEncoder(AHEncoder &&encoder, MIDIAddress address, int16_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new CCRotaryEncoder object with the given pins, address, channel, speed factor,...
Definition
CCRotaryEncoder.hpp:46
GenericMIDIRotaryEncoder< AHEncoder, Sender >::address
MIDIAddress address
Definition
Abstract/MIDIRotaryEncoder.hpp:60
GenericMIDIRotaryEncoder< AHEncoder, Sender >::encoder
AHEncoder encoder
Definition
Abstract/MIDIRotaryEncoder.hpp:59
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition
MIDIAddress.hpp:145
RelativeCCSender
Class that sends relative/incremental MIDI control change messages.
Definition
RelativeCCSender.hpp:88
Generated by
1.17.0