LMMS
Loading...
Searching...
No Matches
Reverb Class Reference

#include <tap_reverb.h>

Inheritance diagram for Reverb:
Effect

Public Member Functions

 Reverb (bool insertion_, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize)
 ~Reverb ()
void out (const Stereo< float * > &smp)
void cleanup (void)
void setpreset (unsigned char npreset)
void changepar (int npar, unsigned char value)
unsigned char getpar (int npar) const
Public Member Functions inherited from Effect
 Effect (bool insertion_, float *efxoutl_, float *efxoutr_, FilterParams *filterpars_, unsigned char Ppreset_, unsigned int srate, int bufsize)
virtual ~Effect ()
void out (float *const smpsl, float *const smpsr)
virtual float getfreqresponse (float freq)

Public Attributes

unsigned long num_combs
unsigned long num_allps
COMB_FILTERcombs
ALLP_FILTERallps
biquadlow_pass
biquadhigh_pass
unsigned long sample_rate
LADSPA_Datadecay
LADSPA_Datadrylevel
LADSPA_Datawetlevel
LADSPA_Datacombs_en
LADSPA_Dataallps_en
LADSPA_Databandpass_en
LADSPA_Datastereo_enh
LADSPA_Datamode
LADSPA_Datainput_L
LADSPA_Dataoutput_L
LADSPA_Datainput_R
LADSPA_Dataoutput_R
LADSPA_Data old_decay
LADSPA_Data old_stereo_enh
LADSPA_Data old_mode
LADSPA_Data run_adding_gain
Public Attributes inherited from Effect
unsigned char Ppreset
float *const efxoutl
float *const efxoutr
float outvolume
float volume
FilterParamsfilterpars

Private Member Functions

void setvolume (unsigned char _Pvolume)
void settime (unsigned char _Ptime)
void setlohidamp (unsigned char _Plohidamp)
void setidelay (unsigned char _Pidelay)
void setidelayfb (unsigned char _Pidelayfb)
void sethpf (unsigned char _Phpf)
void setlpf (unsigned char _Plpf)
void settype (unsigned char _Ptype)
void setroomsize (unsigned char _Proomsize)
void setbandwidth (unsigned char _Pbandwidth)
void processmono (int ch, float *output, float *inputbuf)

Private Attributes

unsigned char Pvolume
unsigned char Ptime
unsigned char Pidelay
unsigned char Pidelayfb
unsigned char Plpf
unsigned char Phpf
unsigned char Plohidamp
unsigned char Ptype
unsigned char Proomsize
unsigned char Pbandwidth
int lohidamptype
int idelaylen
int idelayk
float lohifb
float idelayfb
float roomsize
float rs
int comblen [REV_COMBS *2]
int aplen [REV_APS *2]
class Unisonbandwidth
float * comb [REV_COMBS *2]
int combk [REV_COMBS *2]
float combfb [REV_COMBS *2]
float lpcomb [REV_COMBS *2]
float * ap [REV_APS *2]
int apk [REV_APS *2]
float * idelay
class AnalogFilterlpf
class AnalogFilterhpf

Additional Inherited Members

Static Public Member Functions inherited from Effect
static void crossover (float &a, float &b, float crossover)
Protected Member Functions inherited from Effect
void setpanning (char Ppanning_)
void setlrcross (char Plrcross_)
void alias ()
Protected Attributes inherited from Effect
const bool insertion
char Ppanning
float pangainL
float pangainR
char Plrcross
float lrcross
unsigned int samplerate
int buffersize
float samplerate_f
float halfsamplerate_f
float buffersize_f
int bufferbytes

Detailed Description

Creates Reverberation Effects

Constructor & Destructor Documentation

◆ Reverb()

Reverb::Reverb ( bool insertion_,
float * efxoutl_,
float * efxoutr_,
unsigned int srate,
int bufsize )

◆ ~Reverb()

Reverb::~Reverb ( )

Member Function Documentation

◆ changepar()

void Reverb::changepar ( int npar,
unsigned char value )
virtual

Change parameter npar to value

Parameters
nparchosen parameter
valuechosen new value

Implements Effect.

◆ cleanup()

void Reverb::cleanup ( void )
virtual

Reset the state of the effect

Reimplemented from Effect.

◆ getpar()

unsigned char Reverb::getpar ( int npar) const
virtual

Get the value of parameter npar

Parameters
nparchosen parameter
Returns
the value of the parameter in an unsigned char or 0 if it does not exist

Implements Effect.

◆ out()

void Reverb::out ( const Stereo< float * > & smp)
virtual

Implements Effect.

◆ processmono()

void Reverb::processmono ( int ch,
float * output,
float * inputbuf )
private

◆ setbandwidth()

void Reverb::setbandwidth ( unsigned char _Pbandwidth)
private

◆ sethpf()

void Reverb::sethpf ( unsigned char _Phpf)
private

◆ setidelay()

void Reverb::setidelay ( unsigned char _Pidelay)
private

◆ setidelayfb()

void Reverb::setidelayfb ( unsigned char _Pidelayfb)
private

◆ setlohidamp()

void Reverb::setlohidamp ( unsigned char _Plohidamp)
private

◆ setlpf()

void Reverb::setlpf ( unsigned char _Plpf)
private

◆ setpreset()

void Reverb::setpreset ( unsigned char npreset)
virtual

Choose a preset

Parameters
npresetnumber of chosen preset

Implements Effect.

◆ setroomsize()

void Reverb::setroomsize ( unsigned char _Proomsize)
private

◆ settime()

void Reverb::settime ( unsigned char _Ptime)
private

◆ settype()

void Reverb::settype ( unsigned char _Ptype)
private

◆ setvolume()

void Reverb::setvolume ( unsigned char _Pvolume)
private

Member Data Documentation

◆ allps

ALLP_FILTER* Reverb::allps

◆ allps_en

LADSPA_Data* Reverb::allps_en

◆ ap

float* Reverb::ap[REV_APS *2]
private

◆ apk

int Reverb::apk[REV_APS *2]
private

◆ aplen

int Reverb::aplen[REV_APS *2]
private

◆ bandpass_en

LADSPA_Data* Reverb::bandpass_en

◆ bandwidth

class Unison* Reverb::bandwidth
private

◆ comb

float* Reverb::comb[REV_COMBS *2]
private

◆ combfb

float Reverb::combfb[REV_COMBS *2]
private

◆ combk

int Reverb::combk[REV_COMBS *2]
private

◆ comblen

int Reverb::comblen[REV_COMBS *2]
private

◆ combs

COMB_FILTER* Reverb::combs

◆ combs_en

LADSPA_Data* Reverb::combs_en

◆ decay

LADSPA_Data* Reverb::decay

◆ drylevel

LADSPA_Data* Reverb::drylevel

◆ high_pass

biquad* Reverb::high_pass

◆ hpf

class AnalogFilter * Reverb::hpf
private

◆ idelay

float* Reverb::idelay
private

◆ idelayfb

float Reverb::idelayfb
private

◆ idelayk

int Reverb::idelayk
private

◆ idelaylen

int Reverb::idelaylen
private

◆ input_L

LADSPA_Data* Reverb::input_L

◆ input_R

LADSPA_Data* Reverb::input_R

◆ lohidamptype

int Reverb::lohidamptype
private

◆ lohifb

float Reverb::lohifb
private

◆ low_pass

biquad* Reverb::low_pass

◆ lpcomb

float Reverb::lpcomb[REV_COMBS *2]
private

◆ lpf

class AnalogFilter* Reverb::lpf
private

◆ mode

LADSPA_Data* Reverb::mode

◆ num_allps

unsigned long Reverb::num_allps

◆ num_combs

unsigned long Reverb::num_combs

◆ old_decay

LADSPA_Data Reverb::old_decay

◆ old_mode

LADSPA_Data Reverb::old_mode

◆ old_stereo_enh

LADSPA_Data Reverb::old_stereo_enh

◆ output_L

LADSPA_Data* Reverb::output_L

◆ output_R

LADSPA_Data* Reverb::output_R

◆ Pbandwidth

unsigned char Reverb::Pbandwidth
private

◆ Phpf

unsigned char Reverb::Phpf
private

◆ Pidelay

unsigned char Reverb::Pidelay
private

◆ Pidelayfb

unsigned char Reverb::Pidelayfb
private

◆ Plohidamp

unsigned char Reverb::Plohidamp
private

◆ Plpf

unsigned char Reverb::Plpf
private

◆ Proomsize

unsigned char Reverb::Proomsize
private

◆ Ptime

unsigned char Reverb::Ptime
private

◆ Ptype

unsigned char Reverb::Ptype
private

◆ Pvolume

unsigned char Reverb::Pvolume
private

◆ roomsize

float Reverb::roomsize
private

◆ rs

float Reverb::rs
private

◆ run_adding_gain

LADSPA_Data Reverb::run_adding_gain

◆ sample_rate

unsigned long Reverb::sample_rate

◆ stereo_enh

LADSPA_Data* Reverb::stereo_enh

◆ wetlevel

LADSPA_Data* Reverb::wetlevel

The documentation for this class was generated from the following files: