MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
16 template <
class Sender>
88 template <
class Sender>
A class for potentiometers and faders that send MIDI events (with only a channel, no address).
MIDIFilteredAnalogAddressable(pin_t analogPin, const MIDIAddress &address, const Sender &sender)
Construct a new MIDIFilteredAnalog.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before sending.
analog_t getValue() const
Get the value of the analog input (this is the value after first applying the mapping function).
analog_t getRawValue() const
Get the raw value of the analog input (this is the value without applying the filter or the mapping f...
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
AH::FilteredAnalog< Sender::precision()> filteredAnalog
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before sending.
void invert()
Invert the analog value.
const MIDIAddress address
#define BEGIN_CS_NAMESPACE
void begin() override
Initialize this updatable.
A class that reads and filters an analog input.
AnalogType getRawValue() const
Read the raw value of the analog input without any filtering or mapping applied, but with its bit dep...
AnalogType getValue() const
Get the filtered value of the analog input (with the mapping function applied).
const MIDIAddress address
bool update()
Read the analog input value, apply the mapping function, and update the average.
void update() override
Update this updatable.
AH::FilteredAnalog< Sender::precision()> filteredAnalog
void invert()
Invert the analog value.
void map(MappingFunction fn)
Specify a mapping function/functor that is applied to the analog value after filtering and before app...
void update() final override
Update this updatable.
analog_t getValue() const
Get the value of the analog input (this is the value after first applying the mapping function).
A class for potentiometers and faders that send MIDI events.
analog_t getRawValue() const
Get the raw value of the analog input (this is the value without applying the filter or the mapping f...
uint16_t analog_t
The type returned from analogRead and similar functions.
void begin() final override
Initialize this updatable.
void invert()
Invert the analog value.
MIDIFilteredAnalog(pin_t analogPin, const MIDIAddress &address, const Sender &sender)
Construct a new MIDIFilteredAnalog.
analog_t(*)(analog_t) MappingFunction