Jamba
3.0.2
|
#include <ParamConverters.h>
Inherits pongasoft::VST::IParamConverter< int >.
Public Types | |
using | ParamType = int |
Public Types inherited from pongasoft::VST::IParamConverter< int > | |
using | ParamType = int |
Public Member Functions | |
int | denormalize (ParamValue iNormalizedValue) const override |
DiscreteValueParamConverter (int iToStringOffset=0) | |
DiscreteValueParamConverter (char16 const *iFormat, int iToStringOffset=0) | |
DiscreteValueParamConverter (std::array< ConstString, StepCount+1 > const &iToStringValues) | |
int | getStepCount () const override |
ParamValue | normalize (int const &iDiscreteValue) const override |
void | toString (ParamType const &iValue, String128 oString, int32) const override |
Public Member Functions inherited from pongasoft::VST::IParamConverter< int > | |
virtual std::string | toString (ParamType const &iValue, int32 iPrecision) const |
Private Attributes | |
char16 const * | fFormat {} |
int | fToStringOffset {} |
std::vector< ConstString > | fToStringValues {} |
A converter to deal with a discrete value which has StepCount steps. It follows the formulas given in the SDK documentation. Note that the number of steps is always -1 from the number of values. For example for 3 values (0, 1, 2) the number of steps is 2.
using pongasoft::VST::DiscreteValueParamConverter< StepCount >::ParamType = int |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineoverridevirtual |
Implements pongasoft::VST::IParamConverter< int >.
|
inlineoverridevirtual |
Reimplemented from pongasoft::VST::IParamConverter< int >.
|
inlineoverridevirtual |
Implements pongasoft::VST::IParamConverter< int >.
|
inlineoverridevirtual |
Reimplemented from pongasoft::VST::IParamConverter< int >.
|
private |
|
private |
|
private |