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