Callback class that drives a LED dot/bar display based on a note or control change value. More...
#include <MIDI_Inputs/LEDs/NoteCCRangeLEDBar.hpp>
Public Member Functions | |
NoteCCLEDBarCallback (const AH::DotBarDisplayLEDs< NumLEDs > &leds) | |
void | begin (const INoteCCValue &t) override |
Initialize: called once. More... | |
void | update (const INoteCCValue &t, uint8_t) override |
Update the given index: called when a new message is received for this index. More... | |
void | dotMode () |
Set the mode to dot mode. More... | |
void | barMode () |
Set the mode to bar mode. More... | |
void | setMode (AH::DotBarMode mode) |
Set the mode to either dot or bar mode. More... | |
virtual void | updateAll (const INoteCCValue ¬eccval) |
Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero. More... | |
Private Attributes | |
AH::DotBarDisplayLEDs< NumLEDs > | leds |
Callback class that drives a LED dot/bar display based on a note or control change value.
NumLEDs | The number of LEDs the display has. |
Definition at line 15 of file NoteCCRangeLEDBar.hpp.
|
inline |
Definition at line 17 of file NoteCCRangeLEDBar.hpp.
|
inlineoverridevirtual |
Initialize: called once.
Reimplemented from SimpleNoteCCValueCallback.
Definition at line 20 of file NoteCCRangeLEDBar.hpp.
|
inlineoverridevirtual |
Update the given index: called when a new message is received for this index.
Implements SimpleNoteCCValueCallback.
Definition at line 25 of file NoteCCRangeLEDBar.hpp.
|
inline |
Set the mode to dot mode.
Definition at line 31 of file NoteCCRangeLEDBar.hpp.
|
inline |
Set the mode to bar mode.
Definition at line 33 of file NoteCCRangeLEDBar.hpp.
|
inline |
Set the mode to either dot or bar mode.
mode | The mode. |
Definition at line 35 of file NoteCCRangeLEDBar.hpp.
|
inlinevirtualinherited |
Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero.
Definition at line 58 of file NoteCCRange.hpp.
|
private |
Definition at line 38 of file NoteCCRangeLEDBar.hpp.