#include "config.h"
#include <math.h>
#include "libkwave/Sample.h"
#include "Normalizer.h"
Go to the source code of this file.
|
static double | limiter (const double x, const double lmtr_lvl) |
|
◆ limiter()
static double limiter |
( |
const double |
x, |
|
|
const double |
lmtr_lvl |
|
) |
| |
|
inlinestatic |
Definition at line 58 of file Normalizer.cpp.
Referenced by Kwave::Normalizer::input().
63 xp = tanh((x + lmtr_lvl) / (1-lmtr_lvl)) * (1-lmtr_lvl) - lmtr_lvl;
64 else if (x <= lmtr_lvl)
67 xp = tanh((x - lmtr_lvl) / (1-lmtr_lvl)) * (1-lmtr_lvl) + lmtr_lvl;