ofxPDSP
|
Public Member Functions | |
ParameterAmp (const ParameterAmp &other) | |
ParameterAmp & | operator= (const ParameterAmp &other) |
ofParameter< float > & | set (const char *name, float value, float min, float max) |
sets the and returns the internal ofParameter<float>, useful to set up an UI. This parameter is summed to another ofParameter<int>, that you access passing all ints as parameters More... | |
ofParameter< int > & | set (const char *name, int value, int min, int max) |
sets the and returns the internal ofParameter<int>, useful to set up an UI. This parameter is summed to another ofParameter<float>, that you access passing all ints as parameters More... | |
ofParameter< float > & | set (const char *name, float min, float max) |
sets the value min and max boundary when operated by the ofParameter<float> in the UI and returns the parameter ready to be added to the UI More... | |
ofParameter< int > & | set (const char *name, int min, int max) |
sets the value min and max boundary when operated by the ofParameter<int> in the UI and returns the parameter ready to be added to the UI More... | |
ofParameter< float > & | set (std::string name, float value, float min, float max) |
sets the and returns the internal ofParameter<float>, useful to set up an UI. This parameter is summed to another ofParameter<int>, that you access passing all ints as parameters More... | |
ofParameter< int > & | set (std::string name, int value, int min, int max) |
sets the and returns the internal ofParameter<int>, useful to set up an UI. This parameter is summed to another ofParameter<float>, that you access passing all ints as parameters More... | |
ofParameter< float > & | set (std::string name, float min, float max) |
sets the value min and max boundary when operated by the ofParameter<float> in the UI and returns the parameter ready to be added to the UI More... | |
ofParameter< int > & | set (std::string name, int min, int max) |
sets the value min and max boundary when operated by the ofParameter<int> in the UI and returns the parameter ready to be added to the UI More... | |
ofParameter< bool > & | set (std::string name, bool value, float min=0.0f, float max=1.0f) |
sets the and returns the internal ofParameter<bool>, useful to set up an UI. This parameter set the value to min when false and to max when true, 0.0f and 1.0f if not given. More... | |
ofParameter< bool > & | set (const char *name, bool value, float min=0.0f, float max=1.0f) |
sets the and returns the internal ofParameter<bool>, useful to set up an UI. This parameter set the value to min when false and to max when true, 0.0f and 1.0f if not given. More... | |
void | set (float value) |
sets the value and updates the ofParameters, this is safe to call on the main oF thread but not from other threads. More... | |
ofParameter< float > & | getOFParameterFloat () |
returns the ofParameter ready to be added to the UI | |
ofParameter< int > & | getOFParameterInt () |
returns the ofParameter ready to be added to the UI | |
ofParameter< bool > & | getOFParameterBool () |
returns the ofParameter ready to be added to the UI | |
void | enableSmoothing (float timeMs) |
enables the smoothing of the setted values More... | |
void | disableSmoothing () |
disable the smoothing of the setted values. smoothing is disabled by default | |
float | get () const |
gets the value | |
float | meter_output (int ch=0) const |
returns the actual output value. Thread-safe. More... | |
float | meter_mod () const |
returns the actual control value. Thread-safe. | |
pdsp::Patchable & | in_signal () |
Sets "signal" as selected input and returns this Unit ready to be patched. This is the default input. This input is the signal/value to multiply. | |
pdsp::Patchable & | out_signal () |
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default output. This is the product of in("signal") multiplied by controlling value. | |
void | channels (size_t size) |
Allocate a number of channels for processing different inputs. This is automatically called if you query for a channel outside the allocated range. You can access different channels with the ch() method. More... | |
Patchable & | ch (size_t index) |
Uses the selected channel as input/output for the patching operation. More... | |
Public Member Functions inherited from pdsp::Patchable | |
void | resetInputToDefault () |
resets the selected input to the default. | |
void | resetOutputToDefault () |
resets the selected output to the default. | |
Patchable & | in (const char *tag) |
sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More... | |
Patchable & | out (const char *tag) |
sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More... | |
void | disconnectIn () |
disconnects all the outputs connected to the selected input, then resets the selected input to the default. | |
void | disconnectOut () |
disconnects all the inputs connected to the selected output, then resets the selected output to the default. | |
void | disconnectAll () |
disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default. | |
InputNode & | getSelectedInput () |
returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator. | |
OutputNode & | getSelectedOutput () |
returns the selected output, you can patch it to another Patchable or InputNode with the >> operator. | |
std::vector< std::string > | getInputsList () |
returns a vector of the valid input tags | |
std::vector< std::string > | getOutputsList () |
returns a vector of the valid input tags | |
Additional Inherited Members | |
Protected Member Functions inherited from pdsp::Patchable | |
void | addOutput (const char *tag, OutputNode &output) |
method to add outputs when constructing a Unit More... | |
void | addInput (const char *tag, InputNode &input) |
method to add inputs when constructing a Unit More... | |
void | addModuleOutput (const char *tag, Patchable &unit) |
method to add outputs when constructing a module More... | |
void | addModuleInput (const char *tag, Patchable &unit) |
method to add outputs when constructing a module More... | |
pdsp::Patchable & pdsp::ParameterAmp::ch | ( | size_t | index | ) |
Uses the selected channel as input/output for the patching operation.
[in] | ch | channel index |
void pdsp::ParameterAmp::channels | ( | size_t | size | ) |
Allocate a number of channels for processing different inputs. This is automatically called if you query for a channel outside the allocated range. You can access different channels with the ch() method.
[in] | size | number of channels |
void pdsp::ParameterAmp::enableSmoothing | ( | float | timeMs | ) |
enables the smoothing of the setted values
[in] | timeMs | how many milliseconds will take to reach the setted value |
float pdsp::ParameterAmp::meter_output | ( | int | ch = 0 | ) | const |
returns the actual output value. Thread-safe.
[in] | ch | channel index |
ofParameter< float > & pdsp::ParameterAmp::set | ( | const char * | name, |
float | value, | ||
float | min, | ||
float | max | ||
) |
sets the and returns the internal ofParameter<float>, useful to set up an UI. This parameter is summed to another ofParameter<int>, that you access passing all ints as parameters
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< int > & pdsp::ParameterAmp::set | ( | const char * | name, |
int | value, | ||
int | min, | ||
int | max | ||
) |
sets the and returns the internal ofParameter<int>, useful to set up an UI. This parameter is summed to another ofParameter<float>, that you access passing all ints as parameters
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< float > & pdsp::ParameterAmp::set | ( | const char * | name, |
float | min, | ||
float | max | ||
) |
sets the value min and max boundary when operated by the ofParameter<float> in the UI and returns the parameter ready to be added to the UI
[in] | name | this will become the name of the ofParameter |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< int > & pdsp::ParameterAmp::set | ( | const char * | name, |
int | min, | ||
int | max | ||
) |
sets the value min and max boundary when operated by the ofParameter<int> in the UI and returns the parameter ready to be added to the UI
[in] | name | this will become the name of the ofParameter |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< float > & pdsp::ParameterAmp::set | ( | std::string | name, |
float | value, | ||
float | min, | ||
float | max | ||
) |
sets the and returns the internal ofParameter<float>, useful to set up an UI. This parameter is summed to another ofParameter<int>, that you access passing all ints as parameters
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< int > & pdsp::ParameterAmp::set | ( | std::string | name, |
int | value, | ||
int | min, | ||
int | max | ||
) |
sets the and returns the internal ofParameter<int>, useful to set up an UI. This parameter is summed to another ofParameter<float>, that you access passing all ints as parameters
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< float > & pdsp::ParameterAmp::set | ( | std::string | name, |
float | min, | ||
float | max | ||
) |
sets the value min and max boundary when operated by the ofParameter<float> in the UI and returns the parameter ready to be added to the UI
[in] | name | this will become the name of the ofParameter |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< int > & pdsp::ParameterAmp::set | ( | std::string | name, |
int | min, | ||
int | max | ||
) |
sets the value min and max boundary when operated by the ofParameter<int> in the UI and returns the parameter ready to be added to the UI
[in] | name | this will become the name of the ofParameter |
[in] | min | minimum value |
[in] | max | maximum value |
ofParameter< bool > & pdsp::ParameterAmp::set | ( | std::string | name, |
bool | value, | ||
float | min = 0.0f , |
||
float | max = 1.0f |
||
) |
sets the and returns the internal ofParameter<bool>, useful to set up an UI. This parameter set the value to min when false and to max when true, 0.0f and 1.0f if not given.
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | value when false, 0,0f if not given |
[in] | max | value when true, 1.0f if not given |
ofParameter< bool > & pdsp::ParameterAmp::set | ( | const char * | name, |
bool | value, | ||
float | min = 0.0f , |
||
float | max = 1.0f |
||
) |
sets the and returns the internal ofParameter<bool>, useful to set up an UI. This parameter set the value to min when false and to max when true, 0.0f and 1.0f if not given.
[in] | name | this will become the name of the ofParameter |
[in] | value | default value |
[in] | min | value when false, 0,0f if not given |
[in] | max | value when true, 1.0f if not given |
|
inline |
sets the value and updates the ofParameters, this is safe to call on the main oF thread but not from other threads.
[in] | value | new value |