MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
20 template <
class BankAddress,
class Sender>
92 template <
class BankAddress,
class Sender>
AH::FilteredAnalog< Sender::precision()> filteredAnalog
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
void begin() final override
Initialize this updatable.
analog_t getRawValue() const
Get the raw value of the analog input (this is the value without applying the filter or the mapping f...
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 (with only a channel, no address) and tha...
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
MIDIFilteredAnalogAddressable(BankAddress bankAddress, pin_t analogPin, const Sender &sender)
Construct a new MIDIFilteredAnalog.
analog_t getValue() const
Get the value of the analog input (this is the value after first applying the mapping function).
#define BEGIN_CS_NAMESPACE
void invert()
Invert the analog value.
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).
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before sending.
void begin() override
Initialize this updatable.
bool update()
Read the analog input value, apply the mapping function, and update the average.
void update() final override
Update this updatable.
void map(MappingFunction fn)
Specify a mapping function/functor that is applied to the analog value after filtering and before app...
MIDIFilteredAnalog(BankAddress bankAddress, pin_t analogPin, const Sender &sender)
Construct a new MIDIFilteredAnalog.
uint16_t analog_t
The type returned from analogRead and similar functions.
void invert()
Invert the analog value.
analog_t getRawValue() const
Get the raw value of the analog input (this is the value without applying the filter or the mapping f...
AH::FilteredAnalog< Sender::precision()> filteredAnalog
A class for potentiometers and faders that send MIDI events and that can be added to a Bank.
void invert()
Invert the analog value.
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before sending.
analog_t(*)(analog_t) MappingFunction
void update() override
Update this updatable.