#include <assert.h>
#include <math.h>
#include <stdint.h>
Go to the source code of this file.
|
static double | gain_to_position (double g) |
|
static double | position_to_gain (double pos) |
|
static double | position_to_logscale (double pos, double lower, double upper) |
|
static double | logscale_to_position (double val, double lower, double upper) |
|
static double | logscale_to_position_with_steps (double val, double lower, double upper, uint32_t steps) |
|
static double | position_to_logscale_with_steps (double pos, double lower, double upper, uint32_t steps) |
|
static double | interpolate_linear (double from, double to, double fraction) |
|
static double | interpolate_logarithmic (double from, double to, double fraction, double, double) |
|
static double | interpolate_gain (double f, double t, double fraction, double upper) |
|
◆ TINY_NUMBER
#define TINY_NUMBER (0.0000001) /* (-140dB) */ |
◆ gain_to_position()
static double gain_to_position |
( |
double |
g | ) |
|
|
inlinestatic |
◆ interpolate_gain()
static double interpolate_gain |
( |
double |
f, |
|
|
double |
t, |
|
|
double |
fraction, |
|
|
double |
upper |
|
) |
| |
|
inlinestatic |
◆ interpolate_linear()
static double interpolate_linear |
( |
double |
from, |
|
|
double |
to, |
|
|
double |
fraction |
|
) |
| |
|
inlinestatic |
◆ interpolate_logarithmic()
static double interpolate_logarithmic |
( |
double |
from, |
|
|
double |
to, |
|
|
double |
fraction, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
inlinestatic |
◆ logscale_to_position()
static double logscale_to_position |
( |
double |
val, |
|
|
double |
lower, |
|
|
double |
upper |
|
) |
| |
|
inlinestatic |
◆ logscale_to_position_with_steps()
static double logscale_to_position_with_steps |
( |
double |
val, |
|
|
double |
lower, |
|
|
double |
upper, |
|
|
uint32_t |
steps |
|
) |
| |
|
inlinestatic |
◆ position_to_gain()
static double position_to_gain |
( |
double |
pos | ) |
|
|
inlinestatic |
◆ position_to_logscale()
static double position_to_logscale |
( |
double |
pos, |
|
|
double |
lower, |
|
|
double |
upper |
|
) |
| |
|
inlinestatic |
◆ position_to_logscale_with_steps()
static double position_to_logscale_with_steps |
( |
double |
pos, |
|
|
double |
lower, |
|
|
double |
upper, |
|
|
uint32_t |
steps |
|
) |
| |
|
inlinestatic |