LMMS
Loading...
Searching...
No Matches
tap_utils.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  biquad

Macros

#define db2lin(x)
#define ABS(x)
#define LN_2_2   0.34657359f
#define LIMIT(v, l, u)
#define BIQUAD_TYPE   float

Functions

static LADSPA_Data push_buffer (LADSPA_Data insample, LADSPA_Data *buffer, unsigned long buflen, unsigned long *pos)
static LADSPA_Data read_buffer (LADSPA_Data *buffer, unsigned long buflen, unsigned long pos, unsigned long n)
static void write_buffer (LADSPA_Data insample, LADSPA_Data *buffer, unsigned long buflen, unsigned long pos, unsigned long n)
static void biquad_init (biquad *f)
static void eq_set_params (biquad *f, bq_t fc, bq_t gain, bq_t bw, bq_t fs)
static void lp_set_params (biquad *f, bq_t fc, bq_t bw, bq_t fs)
static void hp_set_params (biquad *f, bq_t fc, bq_t bw, bq_t fs)
static void ls_set_params (biquad *f, bq_t fc, bq_t gain, bq_t slope, bq_t fs)
static void hs_set_params (biquad *f, bq_t fc, bq_t gain, bq_t slope, bq_t fs)
static bq_t biquad_run (biquad *f, bq_t x)

Macro Definition Documentation

◆ ABS

#define ABS ( x)
Value:
(x)>0.0f?(x):-1.0f*(x)
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ BIQUAD_TYPE

#define BIQUAD_TYPE   float

◆ db2lin

#define db2lin ( x)
Value:
((x) > -90.0f ? powf(10.0f, (x) * 0.05f) : 0.0f)

◆ LIMIT

#define LIMIT ( v,
l,
u )
Value:
((v)<(l)?(l):((v)>(u)?(u):(v)))
int * l
Definition inflate.c:1579
unsigned v[N_MAX]
Definition inflate.c:1584
struct huft * u[BMAX]
Definition inflate.c:1583

◆ LN_2_2

#define LN_2_2   0.34657359f

Function Documentation

◆ biquad_init()

void biquad_init ( biquad * f)
inlinestatic

◆ biquad_run()

bq_t biquad_run ( biquad * f,
bq_t x )
inlinestatic

◆ eq_set_params()

void eq_set_params ( biquad * f,
bq_t fc,
bq_t gain,
bq_t bw,
bq_t fs )
inlinestatic

◆ hp_set_params()

void hp_set_params ( biquad * f,
bq_t fc,
bq_t bw,
bq_t fs )
inlinestatic

◆ hs_set_params()

void hs_set_params ( biquad * f,
bq_t fc,
bq_t gain,
bq_t slope,
bq_t fs )
inlinestatic

◆ lp_set_params()

void lp_set_params ( biquad * f,
bq_t fc,
bq_t bw,
bq_t fs )
inlinestatic

◆ ls_set_params()

void ls_set_params ( biquad * f,
bq_t fc,
bq_t gain,
bq_t slope,
bq_t fs )
inlinestatic

◆ push_buffer()

LADSPA_Data push_buffer ( LADSPA_Data insample,
LADSPA_Data * buffer,
unsigned long buflen,
unsigned long * pos )
inlinestatic

◆ read_buffer()

LADSPA_Data read_buffer ( LADSPA_Data * buffer,
unsigned long buflen,
unsigned long pos,
unsigned long n )
inlinestatic

◆ write_buffer()

void write_buffer ( LADSPA_Data insample,
LADSPA_Data * buffer,
unsigned long buflen,
unsigned long pos,
unsigned long n )
inlinestatic