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

#include <Chorus.h>

Inheritance diagram for Chorus:
Effect

Public Member Functions

 Chorus (bool insertion_, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize)
 ~Chorus ()
void out (const Stereo< float * > &input)
void setpreset (unsigned char npreset)
void changepar (int npar, unsigned char value)
unsigned char getpar (int npar) const
void cleanup (void)
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 setdepth (unsigned char _Pdepth)
void setdelay (unsigned char _Pdelay)
void setfb (unsigned char _Pfb)
float getdelay (float xlfo)

Private Attributes

unsigned char Pvolume
unsigned char Pdepth
unsigned char Pdelay
unsigned char Pfb
unsigned char Pflangemode
unsigned char Poutsub
EffectLFO lfo
float depth
float delay
float fb
float dl1
float dl2
float dr1
float dr2
float lfol
float lfor
int maxdelay
Stereo< float * > delaySample
int dlk
int drk
int dlhi

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

Chorus and Flange effects

Constructor & Destructor Documentation

◆ Chorus()

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

◆ ~Chorus()

Chorus::~Chorus ( )

Destructor

Member Function Documentation

◆ changepar()

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

Sets the value of the chosen variable

The possible parameters are:

  1. Volume
  2. Panning
  3. LFO Frequency
  4. LFO Randomness
  5. LFO Type
  6. LFO stereo
  7. Depth
  8. Delay
  9. Feedback
  10. Flange Mode
  11. Subtractive
    Parameters
    nparnumber of chosen parameter
    valuethe new value

Implements Effect.

◆ cleanup()

void Chorus::cleanup ( void )
virtual

Reset the state of the effect

Reimplemented from Effect.

◆ getdelay()

float Chorus::getdelay ( float xlfo)
private

◆ getpar()

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

Gets the value of the chosen variable

The possible parameters are:

  1. Volume
  2. Panning
  3. LFO Frequency
  4. LFO Randomness
  5. LFO Type
  6. LFO stereo
  7. Depth
  8. Delay
  9. Feedback
  10. Flange Mode
  11. Subtractive
    Parameters
    nparnumber of chosen parameter
    Returns
    the value of the parameter

Implements Effect.

◆ out()

void Chorus::out ( const Stereo< float * > & input)
virtual

Implements Effect.

◆ setdelay()

void Chorus::setdelay ( unsigned char _Pdelay)
private

◆ setdepth()

void Chorus::setdepth ( unsigned char _Pdepth)
private

◆ setfb()

void Chorus::setfb ( unsigned char _Pfb)
private

◆ setpreset()

void Chorus::setpreset ( unsigned char npreset)
virtual

Choose a preset

Parameters
npresetnumber of chosen preset

Implements Effect.

◆ setvolume()

void Chorus::setvolume ( unsigned char _Pvolume)
private

Member Data Documentation

◆ delay

float Chorus::delay
private

◆ delaySample

Stereo<float *> Chorus::delaySample
private

◆ depth

float Chorus::depth
private

◆ dl1

float Chorus::dl1
private

◆ dl2

float Chorus::dl2
private

◆ dlhi

int Chorus::dlhi
private

◆ dlk

int Chorus::dlk
private

◆ dr1

float Chorus::dr1
private

◆ dr2

float Chorus::dr2
private

◆ drk

int Chorus::drk
private

◆ fb

float Chorus::fb
private

◆ lfo

EffectLFO Chorus::lfo
private

◆ lfol

float Chorus::lfol
private

◆ lfor

float Chorus::lfor
private

◆ maxdelay

int Chorus::maxdelay
private

◆ Pdelay

unsigned char Chorus::Pdelay
private

◆ Pdepth

unsigned char Chorus::Pdepth
private

◆ Pfb

unsigned char Chorus::Pfb
private

◆ Pflangemode

unsigned char Chorus::Pflangemode
private

◆ Poutsub

unsigned char Chorus::Poutsub
private

◆ Pvolume

unsigned char Chorus::Pvolume
private

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