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

#include <Chorus.h>

Inheritance diagram for zyncarla::Chorus:
zyncarla::Effect

Public Member Functions

 Chorus (EffectParams pars)
 ~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 zyncarla::Effect
 Effect (EffectParams pars)
virtual ~Effect ()
void out (float *const smpsl, float *const smpsr)
virtual float getfreqresponse (float freq)

Static Public Attributes

static rtosc::Ports ports

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 zyncarla::Effect
static void crossover (float &a, float &b, float crossover)
Public Attributes inherited from zyncarla::Effect
unsigned char Ppreset
float *const efxoutl
float *const efxoutr
float outvolume
float volume
FilterParamsfilterpars
Protected Member Functions inherited from zyncarla::Effect
void setpanning (char Ppanning_)
void setlrcross (char Plrcross_)
void alias ()
Protected Attributes inherited from zyncarla::Effect
const bool insertion
char Ppanning
float pangainL
float pangainR
char Plrcross
float lrcross
Allocatormemory
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 ( EffectParams pars)

◆ ~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 zyncarla::Effect.

◆ cleanup()

void Chorus::cleanup ( void )
virtual

Reset the state of the effect

Reimplemented from zyncarla::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 zyncarla::Effect.

◆ out()

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

Implements zyncarla::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 zyncarla::Effect.

◆ setvolume()

void Chorus::setvolume ( unsigned char _Pvolume)
private

Member Data Documentation

◆ delay

float zyncarla::Chorus::delay
private

◆ delaySample

Stereo<float *> zyncarla::Chorus::delaySample
private

◆ depth

float zyncarla::Chorus::depth
private

◆ dl1

float zyncarla::Chorus::dl1
private

◆ dl2

float zyncarla::Chorus::dl2
private

◆ dlhi

int zyncarla::Chorus::dlhi
private

◆ dlk

int zyncarla::Chorus::dlk
private

◆ dr1

float zyncarla::Chorus::dr1
private

◆ dr2

float zyncarla::Chorus::dr2
private

◆ drk

int zyncarla::Chorus::drk
private

◆ fb

float zyncarla::Chorus::fb
private

◆ lfo

EffectLFO zyncarla::Chorus::lfo
private

◆ lfol

float zyncarla::Chorus::lfol
private

◆ lfor

float zyncarla::Chorus::lfor
private

◆ maxdelay

int zyncarla::Chorus::maxdelay
private

◆ Pdelay

unsigned char zyncarla::Chorus::Pdelay
private

◆ Pdepth

unsigned char zyncarla::Chorus::Pdepth
private

◆ Pfb

unsigned char zyncarla::Chorus::Pfb
private

◆ Pflangemode

unsigned char zyncarla::Chorus::Pflangemode
private

◆ ports

rtosc::Ports Chorus::ports
static

◆ Poutsub

unsigned char zyncarla::Chorus::Poutsub
private

◆ Pvolume

unsigned char zyncarla::Chorus::Pvolume
private

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