MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
16 template <
class Sender>
89 template <
class Sender>
void map(MappingFunction fn)
Specify a mapping function that is applied to the raw analog value before filtering.
const MIDICNChannelAddress address
A class for potentiometers and faders that send MIDI events (with only a channel, no address).
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.
analog_t getValue() const
Get the value of the analog input (this is the value after first applying the mapping function).
A super class for object that have to be updated regularly.
AnalogType getRawValue() const
Read the raw value of the analog input any filtering or mapping applied, but with its bit depth incre...
const MIDICNChannelAddress address
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.
MIDIFilteredAnalog(pin_t analogPin, const MIDICNChannel &address, const Sender &sender)
Construct a new MIDIFilteredAnalog.
#define BEGIN_CS_NAMESPACE
void begin() override
Initialize this updatable.
A class that reads and filters an analog input.
void update() override
Update this updatable.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
AH::FilteredAnalog< Sender::precision()> filteredAnalog
void invert()
Invert the analog value.
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...
A class for saving a MIDI channel and cable number.
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.
MIDIFilteredAnalogAddressable(pin_t analogPin, const MIDICNChannelAddress &address, const Sender &sender)
Construct a new MIDIFilteredAnalog.
analog_t(*)(analog_t) MappingFunction
bool update()
Read the analog input value, apply the mapping function, and update the average.