This objects is a wrapper around the actual DSP module that is loaded from a plugin. More...
Inherits ConstScriptingObject, and AssignableObject.
Public Member Functions | |
| DspInstance (const DspFactory *f, const String &moduleName_) | |
| Creates a new instance from the given Factory with the supplied name. More... | |
| var | getConstant (int index) const |
| Returns the constant at the given index. More... | |
| var | getConstantId (int index) const |
| Returns the name of the constant. More... | |
| var | getInfo () const |
| Returns an informative String. More... | |
| var | getNumConstants () const |
| Returns the number of constants. More... | |
| var | getNumParameters () const |
| Returns the number of parameters. More... | |
| var | getParameter (int index) const |
| Returns the parameter with the given index. More... | |
| String | getStringParameter (int index) |
| Gets the string value. More... | |
| bool | isBypassed () const |
| Checks if the processing is enabled. More... | |
| void | operator<< (const var &data) |
| Applies the module on the data. More... | |
| void | operator>> (const var &data) |
| Applies the module on the data. More... | |
| void | prepareToPlay (double sampleRate, int samplesPerBlock) |
| Calls the setup method of the external module. More... | |
| void | processBlock (const var &data) |
| Calls the processMethod of the external module. More... | |
| void | setBypassed (bool shouldBeBypassed) |
| Enables / Disables the processing. More... | |
| void | setParameter (int index, float newValue) |
| Sets the float parameter with the given index. More... | |
| void | setStringParameter (int index, String value) |
| Sets a String value. More... | |
This objects is a wrapper around the actual DSP module that is loaded from a plugin.
It contains the glue code for accessing it per Javascript and is reference counted to manage the lifetime of the external module.
| DspInstance | ( | const DspFactory * | f, |
| const String & | moduleName_ | ||
| ) |
Creates a new instance from the given Factory with the supplied name.
| var getConstant | ( | int | index | ) | const |
Returns the constant at the given index.
| var getConstantId | ( | int | index | ) | const |
Returns the name of the constant.
| var getInfo | ( | ) | const |
Returns an informative String.
| var getNumConstants | ( | ) | const |
Returns the number of constants.
| var getNumParameters | ( | ) | const |
Returns the number of parameters.
| var getParameter | ( | int | index | ) | const |
Returns the parameter with the given index.
| String getStringParameter | ( | int | index | ) |
Gets the string value.
| bool isBypassed | ( | ) | const |
Checks if the processing is enabled.
| void operator<< | ( | const var & | data | ) |
Applies the module on the data.
| void operator>> | ( | const var & | data | ) |
Applies the module on the data.
| void prepareToPlay | ( | double | sampleRate, |
| int | samplesPerBlock | ||
| ) |
Calls the setup method of the external module.
| void processBlock | ( | const var & | data | ) |
Calls the processMethod of the external module.
| void setBypassed | ( | bool | shouldBeBypassed | ) |
Enables / Disables the processing.
| void setParameter | ( | int | index, |
| float | newValue | ||
| ) |
Sets the float parameter with the given index.
| void setStringParameter | ( | int | index, |
| String | value | ||
| ) |
Sets a String value.