Jamba  3.0.2
pongasoft::VST::RT::RTVstParameter< T > Class Template Reference

#include <RTParameter.h>

Inherits pongasoft::VST::RT::RTRawVstParameter.

Public Types

using ParamType = T
 

Public Member Functions

ParamType denormalize (ParamValue iNormalizedValue) const
 
VstParamDef< T > const * getParamDefT () const
 
ParamType const & getPreviousValue () const
 
ParamType const & getValue () const
 
ParamValue normalize (ParamType const &iValue) const
 
 RTVstParameter (VstParam< T > iParamDef)
 
void update (ParamType const &iNewValue)
 
- Public Member Functions inherited from pongasoft::VST::RT::RTRawVstParameter
tresult addToOutput (ProcessData &oData)
 
ParamValue const & getNormalizedValue () const
 
RawVstParamDef const * getParamDef () const
 
ParamID getParamID () const
 
ParamValue const & getPreviousNormalizedValue () const
 
bool hasChanged () const
 
 RTRawVstParameter (std::shared_ptr< RawVstParamDef > iParamDef)
 

Protected Member Functions

bool resetPreviousValue () override
 
bool updateNormalizedValue (ParamValue iNormalizedValue) override
 

Protected Attributes

ParamType fPreviousValue
 
ParamType fValue
 
- Protected Attributes inherited from pongasoft::VST::RT::RTRawVstParameter
ParamValue fNormalizedValue
 
std::shared_ptr< RawVstParamDeffParamDef
 
ParamValue fPreviousNormalizedValue
 

Detailed Description

template<typename T>
class pongasoft::VST::RT::RTVstParameter< T >

The typed version. Maintains the denormalized (aka "typed") version of the value and previous value.

Template Parameters
Tthe underlying type of the param

Member Typedef Documentation

◆ ParamType

template<typename T>
using pongasoft::VST::RT::RTVstParameter< T >::ParamType = T

Constructor & Destructor Documentation

◆ RTVstParameter()

template<typename T>
pongasoft::VST::RT::RTVstParameter< T >::RTVstParameter ( VstParam< T >  iParamDef)
inlineexplicit

Member Function Documentation

◆ denormalize()

template<typename T>
ParamType pongasoft::VST::RT::RTVstParameter< T >::denormalize ( ParamValue  iNormalizedValue) const
inline

◆ getParamDefT()

template<typename T>
VstParamDef<T> const* pongasoft::VST::RT::RTVstParameter< T >::getParamDefT ( ) const
inline

◆ getPreviousValue()

template<typename T>
ParamType const& pongasoft::VST::RT::RTVstParameter< T >::getPreviousValue ( ) const
inline

◆ getValue()

template<typename T>
ParamType const& pongasoft::VST::RT::RTVstParameter< T >::getValue ( ) const
inline

◆ normalize()

template<typename T>
ParamValue pongasoft::VST::RT::RTVstParameter< T >::normalize ( ParamType const &  iValue) const
inline

◆ resetPreviousValue()

template<typename T >
bool pongasoft::VST::RT::RTVstParameter< T >::resetPreviousValue ( )
overrideprotectedvirtual

Called at the end of the frame so that previous value is set to current value for the next frame

Returns
true if previous value was different than current value

Reimplemented from pongasoft::VST::RT::RTRawVstParameter.

◆ update()

template<typename T >
void pongasoft::VST::RT::RTVstParameter< T >::update ( ParamType const &  iNewValue)

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).

◆ updateNormalizedValue()

template<typename T >
bool pongasoft::VST::RT::RTVstParameter< T >::updateNormalizedValue ( ParamValue  iNormalizedValue)
overrideprotectedvirtual

Update the parameter with a new normalized value. This is typically called after the VST parameter managed by the VST sdk changes (for example, moving a knob or loading a previously saved plugin)

Returns
true if the value was actually updated, false if it is the same

Reimplemented from pongasoft::VST::RT::RTRawVstParameter.

Member Data Documentation

◆ fPreviousValue

template<typename T>
ParamType pongasoft::VST::RT::RTVstParameter< T >::fPreviousValue
protected

◆ fValue

template<typename T>
ParamType pongasoft::VST::RT::RTVstParameter< T >::fValue
protected

The documentation for this class was generated from the following file: