This is the main class that the plugin should use as it exposes only the necessary methods of the param as well as redefine a couple of operators which helps in writing simpler and natural code (the param behaves like T in many ways).
More...
#include <RTParameter.h>
Inherits Dereferenceable< RTVstParam< T > >.
template<typename T>
class pongasoft::VST::RT::RTVstParam< T >
This is the main class that the plugin should use as it exposes only the necessary methods of the param as well as redefine a couple of operators which helps in writing simpler and natural code (the param behaves like T in many ways).
- Template Parameters
-
T | the underlying type of the param |
◆ ParamType
◆ RTVstParam()
◆ addToOutput()
tresult addToOutput |
( |
ProcessData & |
oData | ) |
|
|
inline |
Add the current normalized value as an output parameter changes which propagates the change to the vst sdk.
◆ denormalize()
ParamType denormalize |
( |
ParamValue |
iNormalizedValue | ) |
const |
|
inline |
◆ getParamID()
ParamID getParamID |
( |
| ) |
const |
|
inline |
◆ getValue()
T const& getValue |
( |
| ) |
const |
|
inline |
◆ hasChanged()
bool hasChanged |
( |
| ) |
const |
|
inline |
- Returns
- true if the parameter has changed within the frame (previous and current are different)
◆ normalize()
ParamValue normalize |
( |
ParamType const & |
iValue | ) |
const |
|
inline |
◆ normalizedValue()
ParamValue const& normalizedValue |
( |
| ) |
const |
|
inline |
Return the normalized value.
◆ operator *()
constexpr ParamType const& operator * |
( |
| ) |
const |
|
inline |
allow writing *param to access the underlying value (or in other words, *param
is the same param.value()
)
◆ operator ParamType const &()
◆ operator->()
constexpr ParamType const* operator-> |
( |
| ) |
const |
|
inline |
◆ operator=()
Allow to write param = 3.0.
◆ previous()
◆ update() [1/2]
This method is typically called during the processing method when the plugin needs to update the value.
In general the change needs to be propagated to the VST sdk (using addToOutput). Use this version of the call if you want to control when the update actually happens.
◆ update() [2/2]
void update |
( |
ParamType const & |
iNewValue, |
|
|
ProcessData & |
oData |
|
) |
| |
|
inline |
This method is typically called during the processing method when the plugin needs to update the value.
This version will automatically propagate the change to the the VST sdk.
◆ value()
◆ fPtr
The documentation for this class was generated from the following file: