LMMS
Loading...
Searching...
No Matches
dsp::simple_chorus< T, MaxDelay > Class Template Reference

#include <audio_fx.h>

Inheritance diagram for dsp::simple_chorus< T, MaxDelay >:
dsp::chorus_base dsp::modulation_effect dsp::audio_effect

Public Member Functions

 simple_chorus ()
void reset ()
virtual void setup (int sample_rate)
template<class OutIter, class InIter>
void process (OutIter buf_out, InIter buf_in, int nsamples, bool active, float level_in=1., float level_out=1.)
Public Member Functions inherited from dsp::chorus_base
float get_min_delay () const
void set_min_delay (float min_delay)
float get_mod_depth () const
void set_mod_depth (float mod_depth)
Public Member Functions inherited from dsp::modulation_effect
float get_rate () const
void set_rate (float rate)
float get_wet () const
void set_wet (float wet)
float get_dry () const
void set_dry (float dry)
void reset_phase (float req_phase)
void inc_phase (float req_phase)
int get_lfo_active () const
void set_lfo_active (int i)
Public Member Functions inherited from dsp::audio_effect
virtual ~audio_effect ()

Protected Attributes

simple_delay< MaxDelay, T > delay
Protected Attributes inherited from dsp::chorus_base
int min_delay_samples
int mod_depth_samples
float min_delay
float mod_depth
sine_table< int, 4096, 65536 > sine
Protected Attributes inherited from dsp::modulation_effect
int sample_rate
int lfo_active
float rate
float wet
float dry
float odsr
gain_smoothing gs_wet
gain_smoothing gs_dry

Additional Inherited Members

Public Attributes inherited from dsp::modulation_effect
fixed_point< unsigned int, 20 > phase
fixed_point< unsigned int, 20 > dphase

Detailed Description

template<class T, int MaxDelay = 512>
class dsp::simple_chorus< T, MaxDelay >

Single-tap chorus without feedback. Perhaps MaxDelay should be a bit longer!

Constructor & Destructor Documentation

◆ simple_chorus()

template<class T, int MaxDelay = 512>
dsp::simple_chorus< T, MaxDelay >::simple_chorus ( )
inline

Member Function Documentation

◆ process()

template<class T, int MaxDelay = 512>
template<class OutIter, class InIter>
void dsp::simple_chorus< T, MaxDelay >::process ( OutIter buf_out,
InIter buf_in,
int nsamples,
bool active,
float level_in = 1.,
float level_out = 1. )
inline

◆ reset()

template<class T, int MaxDelay = 512>
void dsp::simple_chorus< T, MaxDelay >::reset ( )
inline

◆ setup()

template<class T, int MaxDelay = 512>
virtual void dsp::simple_chorus< T, MaxDelay >::setup ( int sample_rate)
inlinevirtual

Reimplemented from dsp::modulation_effect.

Member Data Documentation

◆ delay

template<class T, int MaxDelay = 512>
simple_delay<MaxDelay,T> dsp::simple_chorus< T, MaxDelay >::delay
protected

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