LMMS
Loading...
Searching...
No Matches
tap_reverb.h File Reference
#include "tap_platform.h"
#include <stdint.h>

Go to the source code of this file.

Classes

struct  biquad
struct  COMB_FILTER
struct  ALLP_FILTER
class  Reverb
struct  COMB_DATA
struct  ALLP_DATA
struct  REVERB_DATA

Macros

#define ID_STEREO   2142
#define DECAY   0
#define DRYLEVEL   1
#define WETLEVEL   2
#define COMBS_EN   3 /* comb filters on/off */
#define ALLPS_EN   4 /* allpass filters on/off */
#define BANDPASS_EN   5 /* bandpass filters on/off */
#define STEREO_ENH   6 /* stereo enhanced mode on/off */
#define MODE   7
#define INPUT_L   8
#define OUTPUT_L   9
#define INPUT_R   10
#define OUTPUT_R   11
#define PORTCOUNT_STEREO   12
#define MAX_COMBS   20
#define MAX_ALLPS   20
#define MAX_DECAY   10000.0f
#define MAX_COMB_DELAY   250.0f
#define MAX_ALLP_DELAY   20.0f
#define BANDPASS_BWIDTH   1.5f
#define FREQ_RESP_BWIDTH   3.0f
#define ENH_STEREO_RATIO   0.998f
#define FR_R_COMP   0.75f
#define db2lin(x)
#define ABS(x)
#define LN_2_2   0.34657359f
#define LIMIT(v, l, u)
#define BIQUAD_TYPE   float

Functions

static rev_t push_buffer (rev_t insample, rev_t *buffer, unsigned long buflen, unsigned long *pos)
static rev_t read_buffer (rev_t *buffer, unsigned long buflen, unsigned long pos, unsigned long n)
static void write_buffer (rev_t insample, rev_t *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 rev_t biquad_run (biquad *f, rev_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

◆ ALLPS_EN

#define ALLPS_EN   4 /* allpass filters on/off */

◆ BANDPASS_BWIDTH

#define BANDPASS_BWIDTH   1.5f

◆ BANDPASS_EN

#define BANDPASS_EN   5 /* bandpass filters on/off */

◆ BIQUAD_TYPE

#define BIQUAD_TYPE   float

◆ COMBS_EN

#define COMBS_EN   3 /* comb filters on/off */

◆ db2lin

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

◆ DECAY

#define DECAY   0

◆ DRYLEVEL

#define DRYLEVEL   1

◆ ENH_STEREO_RATIO

#define ENH_STEREO_RATIO   0.998f

◆ FR_R_COMP

#define FR_R_COMP   0.75f

◆ FREQ_RESP_BWIDTH

#define FREQ_RESP_BWIDTH   3.0f

◆ ID_STEREO

#define ID_STEREO   2142

◆ INPUT_L

#define INPUT_L   8

◆ INPUT_R

#define INPUT_R   10

◆ 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

◆ MAX_ALLP_DELAY

#define MAX_ALLP_DELAY   20.0f

◆ MAX_ALLPS

#define MAX_ALLPS   20

◆ MAX_COMB_DELAY

#define MAX_COMB_DELAY   250.0f

◆ MAX_COMBS

#define MAX_COMBS   20

◆ MAX_DECAY

#define MAX_DECAY   10000.0f

◆ MODE

#define MODE   7

◆ OUTPUT_L

#define OUTPUT_L   9

◆ OUTPUT_R

#define OUTPUT_R   11

◆ PORTCOUNT_STEREO

#define PORTCOUNT_STEREO   12

◆ STEREO_ENH

#define STEREO_ENH   6 /* stereo enhanced mode on/off */

◆ WETLEVEL

#define WETLEVEL   2

Function Documentation

◆ biquad_init()

void biquad_init ( biquad * f)
inlinestatic

◆ biquad_run()

rev_t biquad_run ( biquad * f,
rev_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

◆ lp_set_params()

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

◆ push_buffer()

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

◆ read_buffer()

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

◆ write_buffer()

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