|
Jamba
3.2.0
|
#include <ParamConverters.h>
Inherits pongasoft::VST::IParamConverter< bool >.
Public Member Functions | |
| BooleanParamConverter (VstString16 iFalseString=STR16("Off"), VstString16 iTrueString=STR16("On")) | |
| bool | denormalize (ParamValue iNormalizedValue) const override |
| int32 | getStepCount () const override |
| ParamValue | normalize (bool const &iValue) const override |
| void | toString (bool const &iValue, String128 oString, int32) const override |
Public Member Functions inherited from pongasoft::VST::IParamConverter< bool > | |
| virtual std::string | toString (ParamType const &iValue, int32 iPrecision) const |
Static Public Member Functions | |
| static bool | toBoolean (ParamValue iNormalizedValue) |
Protected Attributes | |
| VstString16 | fFalseString |
| VstString16 | fTrueString |
Additional Inherited Members | |
Public Types inherited from pongasoft::VST::IParamConverter< bool > | |
| using | ParamType = bool |
Manages the very common case when a param represents a boolean value. To denormalize the range [0.0,1.0] this implementation uses false for [0.0, 0.5[ and true for [0.5, 1.0] so that it matches a DiscreteValueParamConverter with a step count of 1.
|
inlineexplicit |
|
inlineoverridevirtual |
Implements pongasoft::VST::IParamConverter< bool >.
|
inlineoverridevirtual |
Reimplemented from pongasoft::VST::IParamConverter< bool >.
|
inlineoverridevirtual |
Implements pongasoft::VST::IParamConverter< bool >.
|
inlinestatic |
Converts a normalized value to a boolean according to the rule: false for [0.0, 0.5[ and true for [0.5, 1.0]
|
inlineoverridevirtual |
Reimplemented from pongasoft::VST::IParamConverter< bool >.
|
protected |
|
protected |