Class daisy::Parameter¶
#include <parameter.h>
Public Types¶
Type | Name |
---|---|
enum | Curve |
Public Functions¶
Type | Name |
---|---|
void | Init (AnalogControl input, float min, float max, Curve curve) |
Parameter () |
|
float | Process () |
float | Value () |
~Parameter () |
Detailed Description¶
Simple parameter mapping tool that takes a 0-1 input from an hid_ctrl.
Public Types Documentation¶
enum Curve¶
Curves are applied to the output signal
Public Functions Documentation¶
function Init¶
initialize a parameter using an hid_ctrl object.
Parameters:
input
- object containing the direct link to a hardware control source.min
- bottom of range. (when input is 0.0)max
- top of range (when input is 1.0)curve
- the scaling curve for the input->output transformation.
function Parameter¶
Constructor
function Process¶
processes the input signal, this should be called at the samplerate of the hid_ctrl passed in.
Returns:
a float with the specified transformation applied.
function Value¶
Returns:
the current value from the parameter without processing another sample. this is useful if you need to use the value multiple times, and don't store
the output of process in a local variable.
function ~Parameter¶
Destructor
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/parameter.h