Jamba C++ API  5.1.1
DiscreteParamConverter Class Reference

Simple wrapper to allow to treat any vst parameter as a discrete one: uses the vst sdk definition of what a discrete property is. More...

Inherits IParamConverter< int32 >.

Public Types

using ParamType = int32
 
- Public Types inherited from IParamConverter< int32 >
using ParamType = int32
 

Public Member Functions

ParamType denormalize (ParamValue iNormalizedValue) const override
 
 DiscreteParamConverter (int32 iStepCount)
 
int32 getStepCount () const override
 
ParamValue normalize (ParamType const &iValue) const override
 
- Public Member Functions inherited from IParamConverter< int32 >
virtual void toString (ParamType const &iValue, String128 iString, int32 iPrecision) const
 
virtual std::string toString (ParamType const &iValue, int32 iPrecision) const
 

Protected Attributes

int32 fStepCount
 

Detailed Description

Simple wrapper to allow to treat any vst parameter as a discrete one: uses the vst sdk definition of what a discrete property is.

See also
convertDiscreteValueToNormalizedValue
convertNormalizedValueToDiscreteValue

Member Typedef Documentation

◆ ParamType

using ParamType = int32

Constructor & Destructor Documentation

◆ DiscreteParamConverter()

DiscreteParamConverter ( int32  iStepCount)
inlineexplicit

Member Function Documentation

◆ denormalize()

ParamType denormalize ( ParamValue  iNormalizedValue) const
inlineoverridevirtual

◆ getStepCount()

int32 getStepCount ( ) const
inlineoverridevirtual

Reimplemented from IParamConverter< int32 >.

◆ normalize()

ParamValue normalize ( ParamType const &  iValue) const
inlineoverridevirtual

Member Data Documentation

◆ fStepCount

int32 fStepCount
protected

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