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

#include <Distorsion.h>

Inheritance diagram for Distorsion:
Effect

Public Member Functions

 Distorsion (bool insertion, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize)
 ~Distorsion ()
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)
void applyfilters (float *efxoutl, float *efxoutr)
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)

Private Member Functions

void setvolume (unsigned char _Pvolume)
void setlpf (unsigned char _Plpf)
void sethpf (unsigned char _Phpf)

Private Attributes

unsigned char Pvolume
unsigned char Pdrive
unsigned char Plevel
unsigned char Ptype
unsigned char Pnegate
unsigned char Plpf
unsigned char Phpf
unsigned char Pstereo
unsigned char Pprefiltering
class AnalogFilterlpfl
class AnalogFilterlpfr
class AnalogFilterhpfl
class AnalogFilterhpfr

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

Distortion Effect

Constructor & Destructor Documentation

◆ Distorsion()

Distorsion::Distorsion ( bool insertion,
float * efxoutl_,
float * efxoutr_,
unsigned int srate,
int bufsize )

◆ ~Distorsion()

Distorsion::~Distorsion ( )

Member Function Documentation

◆ applyfilters()

void Distorsion::applyfilters ( float * efxoutl,
float * efxoutr )

◆ changepar()

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

Change parameter npar to value

Parameters
nparchosen parameter
valuechosen new value

Implements Effect.

◆ cleanup()

void Distorsion::cleanup ( void )
virtual

Reset the state of the effect

Reimplemented from Effect.

◆ getpar()

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

Implements Effect.

◆ sethpf()

void Distorsion::sethpf ( unsigned char _Phpf)
private

◆ setlpf()

void Distorsion::setlpf ( unsigned char _Plpf)
private

◆ setpreset()

void Distorsion::setpreset ( unsigned char npreset)
virtual

Choose a preset

Parameters
npresetnumber of chosen preset

Implements Effect.

◆ setvolume()

void Distorsion::setvolume ( unsigned char _Pvolume)
private

Member Data Documentation

◆ hpfl

class AnalogFilter * Distorsion::hpfl
private

◆ hpfr

class AnalogFilter * Distorsion::hpfr
private

◆ lpfl

class AnalogFilter* Distorsion::lpfl
private

◆ lpfr

class AnalogFilter * Distorsion::lpfr
private

◆ Pdrive

unsigned char Distorsion::Pdrive
private

◆ Phpf

unsigned char Distorsion::Phpf
private

◆ Plevel

unsigned char Distorsion::Plevel
private

◆ Plpf

unsigned char Distorsion::Plpf
private

◆ Pnegate

unsigned char Distorsion::Pnegate
private

◆ Pprefiltering

unsigned char Distorsion::Pprefiltering
private

◆ Pstereo

unsigned char Distorsion::Pstereo
private

◆ Ptype

unsigned char Distorsion::Ptype
private

◆ Pvolume

unsigned char Distorsion::Pvolume
private

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