SPRAAK
|
Execute some mathematical functions in a (ssp-)standard way, checking/updating keys if necessary. More...
Functions | |
int | spr_math_fun_setup (SprSspInfo *Info, const char **descript, void *aux_info) |
int | spr_math_fun_process (SprSspInfo *Info, const void *frame_in, void *frame_out) |
void | spr_math_fun_free (SprSspInfo *Info) |
Execute some mathematical functions in a (ssp-)standard way, checking/updating keys if necessary.
[math_fun] | |
---|---|
dB2pow [given/jah/normal] [b] | |
Calculates exp10(input/10.0)/b, with 'b' [given/2^(-15)(jah)/1.0(normal)]. Default normal. | |
pow2dB [given/jah/normal] [a] [b] | |
Calculates 10.0*log10(a+b*input), with 'a' [given/1.0(jah)/0.0(normal)] and 'b' [given/2^(-15)/1.0]. Default normal. | |
floor <value> | |
Floor the input parameters with a constant. | |
energy | |
Calculates energy in input vector: sum(x[i]^2). |