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

#include <EQ.h>

Inheritance diagram for EQ:
Effect

Public Member Functions

 EQ (bool insertion_, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize)
 ~EQ ()
void out (const Stereo< float * > &smp)
void setpreset (unsigned char npreset)
void changepar (int npar, unsigned char value)
unsigned char getpar (int npar) const
void cleanup (void)
float getfreqresponse (float freq)
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)

Private Member Functions

void setvolume (unsigned char _Pvolume)

Private Attributes

unsigned char Pvolume
struct { 
   unsigned char   Ptype 
   unsigned char   Pfreq 
   unsigned char   Pgain 
   unsigned char   Pq 
   unsigned char   Pstages 
   class AnalogFilter *   l 
   class AnalogFilter *   r 
filter [MAX_EQ_BANDS]

Additional Inherited Members

Static Public Member Functions inherited from Effect
static void crossover (float &a, float &b, float crossover)
Public Attributes inherited from Effect
unsigned char Ppreset
float *const efxoutl
float *const efxoutr
float outvolume
float volume
FilterParamsfilterpars
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

Constructor & Destructor Documentation

◆ EQ()

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

◆ ~EQ()

EQ::~EQ ( )

Member Function Documentation

◆ changepar()

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

Change parameter npar to value

Parameters
nparchosen parameter
valuechosen new value

Implements Effect.

◆ cleanup()

void EQ::cleanup ( void )
virtual

Reset the state of the effect

Reimplemented from Effect.

◆ getfreqresponse()

float EQ::getfreqresponse ( float freq)
virtual

Reimplemented from Effect.

◆ getpar()

unsigned char EQ::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 EQ::out ( const Stereo< float * > & smp)
virtual

Implements Effect.

◆ setpreset()

void EQ::setpreset ( unsigned char npreset)
virtual

Choose a preset

Parameters
npresetnumber of chosen preset

Implements Effect.

◆ setvolume()

void EQ::setvolume ( unsigned char _Pvolume)
private

Member Data Documentation

◆ [struct]

struct { ... } EQ::filter[MAX_EQ_BANDS]

◆ l

class AnalogFilter* EQ::l

◆ Pfreq

unsigned char EQ::Pfreq

◆ Pgain

unsigned char EQ::Pgain

◆ Pq

unsigned char EQ::Pq

◆ Pstages

unsigned char EQ::Pstages

◆ Ptype

unsigned char EQ::Ptype

◆ Pvolume

unsigned char EQ::Pvolume
private

◆ r

class AnalogFilter * EQ::r

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