LMMS
Loading...
Searching...
No Matches
scales.h File Reference
#include <math.h>
#include "os.h"

Go to the source code of this file.

Macros

#define VORBIS_IEEE_FLOAT32   1
#define todB_nn(x)
#define fromdB(x)
#define toBARK(n)
#define fromBARK(z)
#define toMEL(n)
#define fromMEL(m)
#define toOC(n)
#define fromOC(o)

Functions

static float unitnorm (float x)
static float todB (const float *x)

Macro Definition Documentation

◆ fromBARK

#define fromBARK ( z)
Value:
(102.f*(z)-2.f*pow(z,2.f)+.4f*pow(z,3.f)+pow(1.46f,z)-1.f)
unsigned z
Definition inflate.c:1589

◆ fromdB

#define fromdB ( x)
Value:
(exp((x)*.11512925f))
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ fromMEL

#define fromMEL ( m)
Value:
(1000.f*exp((m)/1442.695f)-1000.f)
unsigned * m
Definition inflate.c:1559

◆ fromOC

#define fromOC ( o)
Value:
(exp(((o)+5.965784f)*.693147f))

◆ toBARK

#define toBARK ( n)
Value:
(13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
int n
Definition crypt.c:458

◆ todB_nn

#define todB_nn ( x)
Value:
static float todB(const float *x)
Definition scales.h:43

◆ toMEL

#define toMEL ( n)
Value:
(log(1.f+(n)*.001f)*1442.695f)

◆ toOC

#define toOC ( n)
Value:
(log(n)*1.442695f-5.965784f)

◆ VORBIS_IEEE_FLOAT32

#define VORBIS_IEEE_FLOAT32   1

Function Documentation

◆ todB()

float todB ( const float * x)
inlinestatic

◆ unitnorm()

float unitnorm ( float x)
inlinestatic