#include <MIDI_Outputs/CCAbsoluteEncoder.hpp>
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out absolute MIDI Control Change events.
This version cannot be banked.
- Examples
- AbsoluteRotaryEncoder.ino.
Definition at line 17 of file CCAbsoluteEncoder.hpp.
|
void | enable () |
| Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. More...
|
|
void | disable () |
| Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. More...
|
|
bool | isEnabled () const |
| Check if this updatable is enabled. More...
|
|
void | moveDown () |
| Move down this element in the list. More...
|
|
static void | enable (UpdatableCRTP *element) |
| Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. More...
|
|
static void | enable (UpdatableCRTP &element) |
| Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. More...
|
|
static void | enable (U(&array)[N]) |
| Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. More...
|
|
static void | disable (UpdatableCRTP *element) |
| Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. More...
|
|
static void | disable (UpdatableCRTP &element) |
| Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. More...
|
|
static void | disable (U(&array)[N]) |
| Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. More...
|
|
|
Updatable< NormalUpdatable > * | next |
|
Updatable< NormalUpdatable > * | previous |
|
|
static constexpr int16_t | maxValue = uint16_t(1u << Sender::precision()) - 1 |
|
◆ CCAbsoluteEncoder()
Construct a new CCAbsoluteEncoder object with the given pins, address, channel, speed factor, and number of pulses per step.
- Parameters
-
encoder | The Encoder object to use.
Usually passed as a list of the two pins connected to the A and B outputs of the encoder, e.g. {2, 3} .
The internal pull-up resistors will be enabled by the Encoder library. |
address | The MIDI address containing the controller number [0, 119], channel [CHANNEL_1, CHANNEL_16], and optional cable number [CABLE_1, CABLE_16]. |
multiplier | A constant factor to increase the speed of the rotary encoder. The position will just be multiplied by this factor. |
pulsesPerStep | The number of pulses per physical click of the encoder. For a normal encoder, this is 4. If you want to increase the resolution, for the use of Jog wheels, for example, you can go as 1.
Whereas a greater speedMultiplier factor will increase the speed, increasing the number of pulsesPerStep will result in a lower speed. |
Definition at line 45 of file CCAbsoluteEncoder.hpp.
◆ begin()
|
inlineoverridevirtualinherited |
◆ update()
|
inlineoverridevirtualinherited |
◆ forcedUpdate()
◆ getValue()
uint16_t getValue |
( |
| ) |
const |
|
inlineinherited |
◆ setValue()
void setValue |
( |
uint16_t |
value | ) |
|
|
inlineinherited |
◆ getMaxValue()
static int16_t getMaxValue |
( |
| ) |
|
|
inlinestaticinherited |
◆ setSpeedMultiply()
void setSpeedMultiply |
( |
int16_t |
speedMultiply | ) |
|
|
inlineinherited |
◆ getSpeedMultiply()
int16_t getSpeedMultiply |
( |
| ) |
const |
|
inlineinherited |
◆ getAddress()
◆ setAddress()
◆ beginAll()
◆ updateAll()
static void updateAll |
( |
| ) |
|
|
inlinestaticinherited |
◆ enable() [1/4]
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.
Definition at line 100 of file Updatable.hpp.
◆ enable() [2/4]
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.
Definition at line 129 of file Updatable.hpp.
◆ enable() [3/4]
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.
Definition at line 131 of file Updatable.hpp.
◆ enable() [4/4]
static void enable |
( |
U(&) |
array[N] | ) |
|
|
inlinestaticinherited |
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.
Definition at line 134 of file Updatable.hpp.
◆ disable() [1/4]
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.
Definition at line 110 of file Updatable.hpp.
◆ disable() [2/4]
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.
Definition at line 140 of file Updatable.hpp.
◆ disable() [3/4]
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.
Definition at line 142 of file Updatable.hpp.
◆ disable() [4/4]
static void disable |
( |
U(&) |
array[N] | ) |
|
|
inlinestaticinherited |
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.
Definition at line 145 of file Updatable.hpp.
◆ isEnabled()
Check if this updatable is enabled.
- Note
- Assumes that the updatable is not added to a different linked list by the user.
Definition at line 124 of file Updatable.hpp.
◆ moveDown()
Move down this element in the list.
Definition at line 151 of file Updatable.hpp.
◆ encoder
◆ address
◆ value
◆ encstate
◆ maxValue
constexpr int16_t maxValue = uint16_t(1u << Sender::precision()) - 1 |
|
staticconstexprprivateinherited |
◆ sender
◆ updatables
◆ next
Updatable< NormalUpdatable > * next |
|
protectedinherited |
◆ previous
Updatable< NormalUpdatable > * previous |
|
protectedinherited |
The documentation for this class was generated from the following file: