Jamba  3.0.2
pongasoft::VST::VstParamDef< T > Class Template Reference

#include <ParamDef.h>

Inherits pongasoft::VST::RawVstParamDef.

Public Types

using ParamType = T
 
- Public Types inherited from pongasoft::VST::IParamDef
enum  Owner { Owner::kRT, Owner::kGUI }
 

Public Member Functions

ParamType denormalize (ParamValue iNormalizedValue) const
 
ParamType getDefaultValue () const
 
ParamValue normalize (ParamType const &iValue) const
 
void toString (ParamValue iNormalizedValue, String128 iString) const override
 
 VstParamDef (ParamID const iParamID, TChar const *const iTitle, TChar const *const iUnits, ParamType const iDefaultValue, int32 const iFlags, UnitID const iUnitID, TChar const *const iShortTitle, int32 const iPrecision, Owner const iOwner, bool const iTransient, std::shared_ptr< IParamConverter< ParamType >> iConverter)
 
- Public Member Functions inherited from pongasoft::VST::RawVstParamDef
 RawVstParamDef (ParamID const iParamID, TChar const *const iTitle, TChar const *const iUnits, ParamValue const iDefaultNormalizedValue, int32 const iStepCount, int32 const iFlags, UnitID const iUnitID, TChar const *const iShortTitle, int32 const iPrecision, Owner const iOwner, bool const iTransient)
 
ParamValue readFromStream (IBStreamer &iStreamer) const
 
- Public Member Functions inherited from pongasoft::VST::IParamDef
 IParamDef (ParamID const iParamID, TChar const *const iTitle, Owner const iOwner, bool const iTransient)
 

Public Attributes

const std::shared_ptr< IParamConverter< ParamType > > fConverter
 
const ParamType fDefaultValue
 
- Public Attributes inherited from pongasoft::VST::RawVstParamDef
const ParamValue fDefaultValue
 
const int32 fFlags
 
const int32 fPrecision
 
const TChar *const fShortTitle
 
const int32 fStepCount
 
const UnitID fUnitID
 
const TChar *const fUnits
 
- Public Attributes inherited from pongasoft::VST::IParamDef
const Owner fOwner
 
const ParamID fParamID
 
const TChar *const fTitle
 
const bool fTransient
 

Detailed Description

template<typename T>
class pongasoft::VST::VstParamDef< T >

Typed parameter definition.

Template Parameters
Tthe underlying type of the param

Member Typedef Documentation

◆ ParamType

template<typename T >
using pongasoft::VST::VstParamDef< T >::ParamType = T

Constructor & Destructor Documentation

◆ VstParamDef()

template<typename T >
pongasoft::VST::VstParamDef< T >::VstParamDef ( ParamID const  iParamID,
TChar const *const  iTitle,
TChar const *const  iUnits,
ParamType const  iDefaultValue,
int32 const  iFlags,
UnitID const  iUnitID,
TChar const *const  iShortTitle,
int32 const  iPrecision,
Owner const  iOwner,
bool const  iTransient,
std::shared_ptr< IParamConverter< ParamType >>  iConverter 
)
inline

Member Function Documentation

◆ denormalize()

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

◆ getDefaultValue()

template<typename T >
ParamType pongasoft::VST::VstParamDef< T >::getDefaultValue ( ) const
inline

◆ normalize()

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

◆ toString()

template<typename T >
void pongasoft::VST::VstParamDef< T >::toString ( ParamValue  iNormalizedValue,
String128  iString 
) const
inlineoverridevirtual

Using fConverter::toString

Reimplemented from pongasoft::VST::RawVstParamDef.

Member Data Documentation

◆ fConverter

template<typename T >
const std::shared_ptr<IParamConverter<ParamType> > pongasoft::VST::VstParamDef< T >::fConverter

◆ fDefaultValue

template<typename T >
const ParamType pongasoft::VST::VstParamDef< T >::fDefaultValue

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