18 #include <pluginterfaces/vst/ivstaudioprocessor.h> 20 #ifndef __PONGASOFT_VST_RT_PARAMETER_H__ 21 #define __PONGASOFT_VST_RT_PARAMETER_H__ 24 #include <pongasoft/logging/logging.h> 108 return static_cast<VstParamDef<T>
const *
>(
getParamDef());
149 fValue = denormalize(iNormalizedValue);
164 fPreviousValue = fValue;
178 fNormalizedValue = normalize(fValue);
212 inline T
const &
value()
const {
return fPtr->getValue(); }
287 inline void update(ParamValue
const &iNewValue, ProcessData &oData)
317 #endif // __PONGASOFT_VST_RT_PARAMETER_H__ RTVstParameter(VstParam< T > iParamDef)
Definition: RTParameter.h:98
void update(ParamType const &iNewValue)
This method is typically called during the processing method when the plugin needs to update the valu...
Definition: RTParameter.h:175
ParamType denormalize(ParamValue iNormalizedValue) const
Definition: RTParameter.h:115
void update(ParamValue const &iNewValue, ProcessData &oData)
This method is typically called during the processing method when the plugin needs to update the valu...
Definition: RTParameter.h:287
This is the main class that the plugin should use as it exposes only the necessary methods of the par...
Definition: RTParameter.h:191
ParamValue fNormalizedValue
Definition: RTParameter.h:83
void update(ParamType const &iNewValue)
This method is typically called during the processing method when the plugin needs to update the valu...
Definition: RTParameter.h:219
T const & getValue() const
Definition: RTParameter.h:209
void update(ParamValue const &iNewValue)
This method is typically called during the processing method when the plugin needs to update the valu...
Definition: RTParameter.h:281
ParamValue const & value() const
Definition: RTParameter.h:274
ParamType denormalize(ParamValue iNormalizedValue) const
Definition: RTParameter.h:206
RawVstParamDef const * getParamDef() const
Definition: RTParameter.h:49
ParamType const & previous() const
Definition: RTParameter.h:248
VstParamDef< T > const * getParamDefT() const
Definition: RTParameter.h:106
T ParamType
Definition: RTParameter.h:95
bool resetPreviousValue() override
Called at the end of the frame so that previous value is set to current value for the next frame.
Definition: RTParameter.h:160
ParamType const & getValue() const
Definition: RTParameter.h:124
RTRawVstParam(RTRawVstParameter *iPtr)
Definition: RTParameter.h:264
void update(ParamType const &iNewValue, ProcessData &oData)
This method is typically called during the processing method when the plugin needs to update the valu...
Definition: RTParameter.h:225
T const & value() const
Definition: RTParameter.h:212
tresult addToOutput(ProcessData &oData)
Add the current normalized value as an output parameter changes which propagates the change to the vs...
Definition: RTParameter.h:239
bool hasChanged() const
Definition: RTParameter.h:234
RTVstParam(RTVstParameter< T > *iPtr)
Definition: RTParameter.h:196
bool updateNormalizedValue(ParamValue iNormalizedValue) override
Update the parameter with a new normalized value.
Definition: RTParameter.h:145
tresult addToOutput(ProcessData &oData)
Add the current normalized value as an output parameter changes.
Definition: RTParameter.cpp:29
ParamID getParamID() const
Definition: RTParameter.h:268
bool hasChanged() const
Definition: RTParameter.h:73
ParamType const & getPreviousValue() const
Definition: RTParameter.h:127
ParamValue const & getPreviousNormalizedValue() const
Definition: RTParameter.h:63
RTRawVstParameter * fPtr
Definition: RTParameter.h:310
ParamType fPreviousValue
Definition: RTParameter.h:138
ParamValue fPreviousNormalizedValue
Definition: RTParameter.h:84
ParamID getParamID() const
Definition: RTParameter.h:200
This is the main class that the plugin should use as it exposes only the necessary methods of the par...
Definition: RTParameter.h:261
RTRawVstParameter(std::shared_ptr< RawVstParamDef > iParamDef)
Definition: RTParameter.h:39
virtual bool updateNormalizedValue(ParamValue iNormalizedValue)
Update the parameter with a new normalized value.
Definition: RTParameter.cpp:49
virtual bool resetPreviousValue()
Called at the end of the frame so that previous value is set to current value for the next frame.
Definition: RTParameter.cpp:65
ParamValue normalize(ParamType const &iValue) const
Definition: RTParameter.h:203
Base class which deals with the "raw"/untyped parameter and keep the normalized value (ParamValue in ...
Definition: RTParameter.h:35
ParamValue const & getNormalizedValue() const
Definition: RTParameter.h:60
The typed version.
Definition: RTParameter.h:92
ParamValue const & previous() const
Definition: RTParameter.h:307
bool hasChanged() const
Definition: RTParameter.h:296
tresult addToOutput(ProcessData &oData)
Add the current normalized value as an output parameter changes which propagates the change to the vs...
Definition: RTParameter.h:301
RTVstParameter< T > * fPtr
Definition: RTParameter.h:251
T ParamType
Definition: RTParameter.h:193
std::shared_ptr< RawVstParamDef > fParamDef
Definition: RTParameter.h:82
ParamType const * operator->() const
Definition: RTParameter.h:245
ParamID getParamID() const
Definition: RTParameter.h:46
ParamValue const & getValue() const
Definition: RTParameter.h:271
ParamType fValue
Definition: RTParameter.h:137
ParamValue normalize(ParamType const &iValue) const
Definition: RTParameter.h:112