#include <FastLED.hpp>
Public Member Functions | |
CCRangeFastLED (Array< CRGB, RangeLen > &leds, MIDICNChannelAddress address, const ColorMapper &colormapper={}) | |
CCRangeFastLED (CRGB *leds, MIDICNChannelAddress address, const ColorMapper &colormapper={}) | |
void | setBrightness (uint8_t brightness) |
Set the maximum brightness of the LEDs. More... | |
uint8_t | getBrightness () const |
Get the maximum brightness of the LEDs. More... | |
uint8_t | getValue (uint8_t index) const override |
virtual uint8_t | getValue (uint8_t index) const =0 |
uint8_t | getValue () const |
uint8_t | getValue () const |
void | begin () override |
Initialize. More... | |
void | reset () override |
Reset all values to zero. More... | |
uint8_t | length () const |
virtual void | update () |
Update the value of the input element. Used for decaying VU meters etc. More... | |
bool | updateWith (const ChannelMessageMatcher &midimsg) |
Receive a new MIDI message and update the internal state. More... | |
Static Public Member Functions | |
constexpr static uint8_t | length () |
static void | beginAll () |
Initialize all MIDIInputElementCC elements. More... | |
static void | updateAll () |
Update all MIDIInputElementCC elements. More... | |
static void | resetAll () |
Reset all MIDIInputElementCC elements to their initial state. More... | |
static void | updateAllWith (const ChannelMessageMatcher &midimsg) |
Update all MIDIInputElementCC elements with a new MIDI message. More... | |
Public Attributes | |
NoteCCFastLED< ColorMapper > | callback |
Protected Attributes | |
const MIDICNChannelAddress | address |
MIDIInputElementCC * | next |
MIDIInputElementCC * | previous |
Private Member Functions | |
bool | match (const MIDICNChannelAddress &target) const override |
Check if the address of the incoming MIDI message is within the range of addresses of this element. More... | |
bool | updateImpl (const ChannelMessageMatcher &midimsg, const MIDICNChannelAddress &target) override |
virtual uint8_t | getSelection () const |
Get the active bank selection. More... | |
virtual setting_t | getBankIndex (MIDICNChannelAddress target) const |
Get the bank index from a MIDI address. More... | |
virtual uint8_t | getRangeIndex (MIDICNChannelAddress target) const |
void | moveDown () |
Move down this element in the linked list of elements. More... | |
virtual MIDICNChannelAddress | getTarget (const ChannelMessageMatcher &midimsg) const |
Extract the target address from a MIDI message. More... | |
Static Private Member Functions | |
static uint8_t | getValueFromMIDIMessage (const ChannelMessageMatcher &midimsg) |
Private Attributes | |
Array< Array< uint8_t, RangeLen >, NumBanks > | values |
uint8_t | rangeLength |
Static Private Attributes | |
static DoublyLinkedList< MIDIInputElementCC > | elements |
Definition at line 139 of file FastLED.hpp.
|
inline |
Definition at line 153 of file FastLED.hpp.
|
inline |
Definition at line 161 of file FastLED.hpp.
|
inline |
Set the maximum brightness of the LEDs.
brightness | The maximum brightness [0, 255] |
Definition at line 170 of file FastLED.hpp.
|
inline |
Get the maximum brightness of the LEDs.
Definition at line 174 of file FastLED.hpp.
|
inlineoverrideprivatevirtualinherited |
Check if the address of the incoming MIDI message is within the range of addresses of this element.
Reimplemented from MIDIInputElement.
Definition at line 114 of file NoteCCRange.hpp.
|
inlineoverridevirtualinherited |
|
inherited |
|
inlineinherited |
Definition at line 16 of file NoteCCRange.hpp.
|
inlineinherited |
Definition at line 16 of file NoteCCRange.hpp.
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
Reset all values to zero.
Reimplemented from MIDIInputElement.
Definition at line 59 of file NoteCCRange.hpp.
|
inlineoverrideprivatevirtualinherited |
Implements MIDIInputElement.
Definition at line 65 of file NoteCCRange.hpp.
|
inlinestaticprivateinherited |
Definition at line 77 of file NoteCCRange.hpp.
|
inlineprivatevirtualinherited |
Get the active bank selection.
Definition at line 82 of file NoteCCRange.hpp.
|
inlineprivatevirtualinherited |
Get the bank index from a MIDI address.
Definition at line 85 of file NoteCCRange.hpp.
|
inlineprivatevirtualinherited |
Definition at line 90 of file NoteCCRange.hpp.
|
inlinestaticconstexprinherited |
Definition at line 98 of file NoteCCRange.hpp.
|
inlineinherited |
Definition at line 14 of file NoteCCRange.hpp.
|
inlinestaticinherited |
Initialize all MIDIInputElementCC elements.
Definition at line 50 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Update all MIDIInputElementCC elements.
Definition at line 58 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Reset all MIDIInputElementCC elements to their initial state.
Definition at line 66 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Update all MIDIInputElementCC elements with a new MIDI message.
Definition at line 74 of file MIDIInputElementCC.hpp.
|
inlineprivateinherited |
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.
|
inlinevirtualinherited |
Update the value of the input element. Used for decaying VU meters etc.
Reimplemented in MCU::VU_Base< NumValues, Callback >, MCU::VU_Base< NumBanks, Callback >, MCU::VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, MCU::VU_Base< NumBanks, VUEmptyCallback >, MCU::VU_Base< 1, VUEmptyCallback >, MCU::VU_Base< 1, VULEDsCallback< NumLEDs > >, and MCU::VU_Base< 1, Callback >.
Definition at line 36 of file MIDIInputElement.hpp.
|
inlineinherited |
Receive a new MIDI message and update the internal state.
Definition at line 39 of file MIDIInputElement.hpp.
|
inlineprivatevirtualinherited |
Extract the target address from a MIDI message.
Reimplemented in MCU::VU_Base< NumValues, Callback >, MCU::VU_Base< NumBanks, Callback >, MCU::VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, MCU::VU_Base< NumBanks, VUEmptyCallback >, MCU::VU_Base< 1, VUEmptyCallback >, MCU::VU_Base< 1, VULEDsCallback< NumLEDs > >, MCU::VU_Base< 1, Callback >, MIDIInputElementChannelPressure, and MIDIInputElementPC.
Definition at line 64 of file MIDIInputElement.hpp.
|
privateinherited |
Definition at line 94 of file NoteCCRange.hpp.
|
inherited |
Definition at line 97 of file NoteCCRange.hpp.
|
staticprivateinherited |
Definition at line 97 of file MIDIInputElementCC.hpp.
|
protectedinherited |
Definition at line 80 of file MIDIInputElement.hpp.
|
protectedinherited |
Definition at line 305 of file LinkedList.hpp.
|
protectedinherited |
Definition at line 306 of file LinkedList.hpp.
|
privateinherited |
Definition at line 19 of file NoteCCRange.hpp.