MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
14 template <u
int8_t NumLEDs>
51 template <u
int8_t NumLEDs>
53 NoteCCLEDBarCallback<NumLEDs>> {
81 template <u
int8_t NumLEDs>
83 NoteCCLEDBarCallback<NumLEDs>> {
117 template <u
int8_t BankSize, u
int8_t NumLEDs>
119 NoteCCLEDBarCallback<NumLEDs>> {
151 template <u
int8_t BankSize, u
int8_t NumLEDs>
153 NoteCCLEDBarCallback<NumLEDs>> {
Callback class that drives a LED dot/bar display based on a note or control change value.
void display(uint8_t value) const
Display the given number of LEDs on the LED bar.
Class that listens for Control Change events and displays the velocity on an LED Bar Graph.
void dotMode()
Set the mode to dot mode.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
void setMode(AH::DotBarMode mode)
Set the mode to either dot or bar mode.
virtual void updateAll(const INoteCCValue ¬eccval)
Update all values: called when a bank change causes all values to (possibly) change,...
void begin() const
Initialize (set LED pins as outputs).
Interface for NoteCCValue objects: provides getters for the velocity or controller values.
A callback for NoteCCRange with an action that can be implemented by the user.
void barMode()
Set the mode to bar mode.
void dotMode()
Set the mode to dot mode.
#define BEGIN_CS_NAMESPACE
NoteCCLEDBarCallback(const AH::DotBarDisplayLEDs< NumLEDs > &leds)
void setMode(AH::DotBarMode mode)
Set the mode to either dot or bar mode.
void barMode()
Set the mode to bar mode.
void setMode(DotBarMode mode)
Set the mode to either dot or bar mode.
DotBarMode
An enumeration type to set an LED display to either bar or dot mode.
NoteCCLEDBarCallback< NumLEDs > callback
Callback that is called when a value in the active bank changes.
Class that listens for Note events and displays the velocity on an LED Bar Graph.
void setMode(AH::DotBarMode mode)
Set the mode to either dot or bar mode.
void dotMode()
Set the mode to dot mode.
void dotMode()
Set the mode to dot mode.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
void dotMode()
Set the mode to dot mode.
Class that listens for Control Change events and displays the velocity on an LED Bar Graph.
void barMode()
Set the mode to bar mode.
CCLEDBar(const AH::DotBarDisplayLEDs< NumLEDs > &leds, MIDICNChannelAddress address)
AH::DotBarDisplayLEDs< NumLEDs > leds
NoteLEDBar(const BankConfig< BankSize > &config, const AH::DotBarDisplayLEDs< NumLEDs > &leds, const MIDICNChannelAddress &address)
void barMode()
Set the mode to bar mode.
void begin(const INoteCCValue &t) override
Initialize: called once.
void setMode(AH::DotBarMode mode)
Set the mode to either dot or bar mode.
NoteLEDBar(const AH::DotBarDisplayLEDs< NumLEDs > &leds, MIDICNChannelAddress address)
virtual uint8_t getValue(uint8_t index) const =0
Get the velocity or controller value for the given index in the range.
void barMode()
Set the mode to bar mode.
void dotMode()
Set the mode to dot mode.
CCLEDBar(const BankConfig< BankSize > &config, const AH::DotBarDisplayLEDs< NumLEDs > &leds, const MIDICNChannelAddress &address)
Class that listens for Note events and displays the velocity on an LED Bar Graph.
void update(const INoteCCValue &t, uint8_t) override
Update the given index: called when a new message is received for this index.
A struct for selecting the bank of BankableMIDIInputs and the bank type.
void setMode(AH::DotBarMode mode)
Set the mode to either dot or bar mode.
void barMode()
Set the mode to bar mode.