MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
8 template <setting_t N,
class Callback = EmptySelectorCallback>
28 uint8_t program = midimsg.
data1;
32 DEBUGFN(
F(
"Warning: Received Program Change to program 0x")
34 <<
F(
", which is not smaller than the number of settings (")
49 template <setting_t N>
void begin() override
Initialize this updatable.
void reset() override
Reset the input element to its initial state.
bool updateImpl(const ChannelMessageMatcher &midimsg, const MIDICNChannelAddress &target) override
Update the internal state with the new MIDI message.
GenericProgramChangeSelector(Selectable< N > &selectable, const Callback &callback, const MIDICNChannel &address)
#define BEGIN_CS_NAMESPACE
Struct for easily matching MIDI messages.
Selector that listens for MIDI Program Change events on a given MIDI Channel, and uses the program nu...
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
ProgramChangeSelector(Selectable< N > &selectable, const MIDICNChannel &address)
A class for saving a MIDI channel and cable number.
void reset()
Reset the selection to the initial selection.
void set(setting_t newSetting)
Select the given selection.
Print & hex(Print &printer)
#define DEBUGFN(x)
Print an expression and its function (function name and line number) to the debug output if debugging...
Selectable< N > & selectable
Print & dec(Print &printer)
void begin() override
Initialize the input element.