#include <MIDI_Inputs/LEDs/MCU/VPotRingLEDs.hpp>
|
static uint8_t | sanitizeValue (uint8_t value) |
| Make sure that the received value is valid and will not result in array out of bounds conditions. More...
|
|
|
static uint8_t | getPosition (uint8_t value) |
| Extract the position from the raw value. More...
|
|
static bool | getCenterLed (uint8_t value) |
| Extract the center LED state from the raw value. More...
|
|
static uint8_t | getMode (uint8_t value) |
| Extract the mode from the raw value. More...
|
|
Definition at line 30 of file VPotRingLEDs.hpp.
◆ VPotRingLEDs()
◆ begin()
|
inlineoverridevirtualinherited |
◆ reset()
|
inlineoverridevirtualinherited |
◆ sanitizeValue()
static uint8_t sanitizeValue |
( |
uint8_t |
value | ) |
|
|
inlinestaticprotectedinherited |
Make sure that the received value is valid and will not result in array out of bounds conditions.
Definition at line 105 of file VPotRing.hpp.
◆ updateImpl()
|
inlineoverrideprivatevirtualinherited |
◆ getValue()
uint8_t getValue |
( |
| ) |
const |
|
inlineoverrideprivatevirtualinherited |
◆ getSelection()
virtual uint8_t getSelection |
( |
| ) |
const |
|
inlineprivatevirtualinherited |
Get the active bank selection.
Definition at line 121 of file VPotRing.hpp.
◆ getBankIndex()
|
inlineprivatevirtualinherited |
Get the bank index from a MIDI address.
Definition at line 124 of file VPotRing.hpp.
◆ beginAll()
◆ updateAll()
static void updateAll |
( |
| ) |
|
|
inlinestaticinherited |
◆ resetAll()
◆ updateAllWith()
◆ moveDown()
Move down this element in the linked list of elements.
This means that the element will be checked earlier on the next iteration.
Definition at line 92 of file MIDIInputElementCC.hpp.
◆ update()
Update the value of the input element. Used for decaying VU meters etc.
Reimplemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, and VU_Base< 1, Callback >.
Definition at line 36 of file MIDIInputElement.hpp.
◆ updateWith()
◆ getTarget()
|
inlineprivatevirtualinherited |
Extract the target address from a MIDI message.
- Note
- This base version of the function is only valid for messages that use data1 as an address (i.e. Note On, Note Off, Polyphonic Key Pressure and Control Change), because it assumes that the target address consists of the address (data 1), the MIDI channel and the cable number.
Reimplemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, VU_Base< 1, Callback >, MIDIInputElementChannelPressure, and MIDIInputElementPC.
Definition at line 64 of file MIDIInputElement.hpp.
◆ match()
|
inlineprivatevirtualinherited |
Check if the address of the incoming MIDI message matches an address of this element.
- Note
- This base version of the function is only valid for non-Bankable MIDI input elements, it only matches if the address is equal to the address of this element.
Reimplemented in GenericVU< NumBanks, Callback >, GenericVU< NumBanks >, GenericVU< NumBanks, VULEDsCallback< NumLEDs > >, GenericNoteCCRange< MIDIInputElementNote, 1, BankSize, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, BankSize, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementNote, 1, BankSize, NoteCCLEDPWM< 1 > >, GenericNoteCCRange< MIDIInputElementCC, 1, BankSize, NoteCCLED< 1 > >, GenericNoteCCRange< MIDIInputElementCC, 1, BankSize, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, BankSize, NoteCCLEDPWM< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, BankSize, NoteCCLED< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, 1, BankSize, NoteCCLEDBarCallback< NumLEDs > >, GenericNoteCCRange< MIDIInputElementCC, 1, BankSize, NoteCCLEDPWM< 1 > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, BankSize, NoteCCLEDPWM< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, 1, BankSize, NoteCCLED< 1 > >, GenericNoteCCRange< MIDIInputElementCC, 1, BankSize, NoteCCLEDBarCallback< NumLEDs > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, BankSize, NoteCCLED< RangeLen > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, BankSize, NoteCCFastLEDCallback< ColorMapper > >, GenericVPotRing< NumBanks, Callback >, GenericVPotRing< NumBanks >, GenericVPotRing< NumBanks, VPotRingLEDsCallback >, GenericNoteCCRange< MIDIInputElementCC, 1, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementCC, 1, NoteCCLED< 1 > >, GenericNoteCCRange< MIDIInputElementNote, 1, NoteCCLED< 1 > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, NoteCCLED< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementNote, 1, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementNote, 1, NoteCCLEDPWM< 1 > >, GenericNoteCCRange< MIDIInputElementCC, 1, NoteCCLEDPWM< 1 > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, NoteCCFastLEDCallback< ColorMapper > >, GenericNoteCCRange< MIDIInputElementCC, 1, NoteCCLEDBarCallback< NumLEDs > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, NoteCCLED< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, RangeLen, NoteCCLEDPWM< RangeLen > >, GenericNoteCCRange< MIDIInputElementNote, 1, NoteCCLEDBarCallback< NumLEDs > >, GenericNoteCCRange< MIDIInputElementCC, RangeLen, NoteCCLEDPWM< RangeLen > >, SevenSegmentDisplay< LENGTH >, SevenSegmentDisplay< AssignmentDisplayLength >, and SevenSegmentDisplay< TimeDisplayLength >.
Definition at line 75 of file MIDIInputElement.hpp.
◆ getPosition() [1/2]
uint8_t getPosition |
( |
| ) |
const |
|
inlineinherited |
Return the position of the V-Pot ring. [0, 11].
Definition at line 32 of file VPotRing.hpp.
◆ getPosition() [2/2]
static uint8_t getPosition |
( |
uint8_t |
value | ) |
|
|
inlinestaticprivateinherited |
Extract the position from the raw value.
Definition at line 72 of file VPotRing.hpp.
◆ getCenterLed() [1/2]
bool getCenterLed |
( |
| ) |
const |
|
inlineinherited |
Return the status of the center LED of the V-Pot ring.
Definition at line 34 of file VPotRing.hpp.
◆ getCenterLed() [2/2]
static bool getCenterLed |
( |
uint8_t |
value | ) |
|
|
inlinestaticprivateinherited |
Extract the center LED state from the raw value.
Definition at line 77 of file VPotRing.hpp.
◆ getMode() [1/2]
uint8_t getMode |
( |
| ) |
const |
|
inlineinherited |
Return the mode of the V-Pot ring: 0 = single dot, 1 = boost/cut, 2 = wrap, 3 = spread.
Definition at line 37 of file VPotRing.hpp.
◆ getMode() [2/2]
static uint8_t getMode |
( |
uint8_t |
value | ) |
|
|
inlinestaticprivateinherited |
Extract the mode from the raw value.
Definition at line 79 of file VPotRing.hpp.
◆ getStartOn()
uint8_t getStartOn |
( |
| ) |
const |
|
inlineinherited |
Get the first segment that should be on.
Definition at line 40 of file VPotRing.hpp.
◆ getStartOff()
uint8_t getStartOff |
( |
| ) |
const |
|
inlineinherited |
Get the first segment that should be off.
Definition at line 56 of file VPotRing.hpp.
◆ values
Array<uint8_t, NumValues> values |
|
privateinherited |
◆ callback
◆ elements
◆ address
◆ next
◆ previous
The documentation for this class was generated from the following file: