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>
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before filtering.
AH::FilteredAnalog< Sender::precision()> filteredAnalog
AnalogType getValue() const
Get the filtered value of the analog input (with the mapping function applied).
AnalogType getRawValue() const
Read the raw value of the analog input any filtering or mapping applied, but with its bit depth incre...
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).
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.
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before sending.
void begin() override
Initialize this updatable.
void update() final override
Update this updatable.
MIDIFilteredAnalogAddressable(const 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
MIDIFilteredAnalog(const BankAddress &bankAddress, pin_t analogPin, const Sender &sender)
Construct a new MIDIFilteredAnalog.
bool update()
Read the analog input value, apply the mapping function, and update the average.
void update() override
Update this updatable.