|
| LogScale (T srcMin, T srcMax, T destMin, T destMax, T inValue=0.5, T outValue=0.1) |
| Constructor. More...
|
|
| LogScale () |
| Default Constructor with [0, 0.5, 1] => [0, 0.1, 1]. More...
|
|
void | changeScaling (T srcMin, T srcMax, T destMin, T destMax, T inValue, T outValue) |
| Applies a new scale setting. More...
|
|
void | scale (T *pIn, T *pOut, int32 nSamples) |
| Computes the scale from pIn input buffer to pOut output buffer (pIn and POut could be the same buffer). More...
|
|
T | scale (T input) const |
| Computes for one given value the scale. More...
|
|
void | invscale (T *pIn, T *pOut, int32 nSamples) |
| Computes the inverse scale from pIn input buffer to pOut output buffer (pIn and POut could be the same buffer). More...
|
|
T | invscale (T input) const |
| Computes for one given value the inverse scale. More...
|
|
T | invscaleCheck (T in) const |
| Same than invscale with a check of the input. More...
|
|
template<class T>
class Steinberg::Vst::LogScale< T >
LogScale class.
Scales [srcMin srcMax] to [destMin destMax]
Scaling curve is defined by given outValue for given inValue
Example for stretched lower range
LogScale myLogScale (0, 1, 0, 1, 0.5, 0.1);
means: input and output ranges are the same, but myLogScale.scale (0.5) is 0.1 ([0, 0.5, 1] => [0, 0.1, 1])
Example for compressed lower range
LogScale myLogScale (0, 1, 0, 1, 0.5, 0.9);
means: input and output ranges are the same, but myLogScale.scale (0.5) is 0.9 ([0, 0.5, 1] => [0, 0.9, 1])
Example for filter frequency range
LogScale myLogScale (0, 1, 80, 22000, 0.5, 2000);
means: input range is between 0 and 1 and output range is between 80 and 22000 and myLogScale.scale (0.5) is 2000 ([0, 0.5, 1] => [80, 2000, 22000])