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

#include <audio_fx.h>

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

Public Member Functions

 simple_flanger ()
void reset ()
virtual void setup (int sample_rate)
float get_fb () const
void set_fb (float fb)
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.)
float freq_gain (float freq, float sr) const
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
float fb
int last_delay_pos
int last_actual_delay_pos
int ramp_pos
int ramp_delay_pos
int lfo
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 = 1024>
class dsp::simple_flanger< T, MaxDelay >

Single-tap flanger (chorus plus feedback).

Constructor & Destructor Documentation

◆ simple_flanger()

template<class T, int MaxDelay = 1024>
dsp::simple_flanger< T, MaxDelay >::simple_flanger ( )
inline

Member Function Documentation

◆ freq_gain()

template<class T, int MaxDelay = 1024>
float dsp::simple_flanger< T, MaxDelay >::freq_gain ( float freq,
float sr ) const
inline

◆ get_fb()

template<class T, int MaxDelay = 1024>
float dsp::simple_flanger< T, MaxDelay >::get_fb ( ) const
inline

◆ process()

template<class T, int MaxDelay = 1024>
template<class OutIter, class InIter>
void dsp::simple_flanger< 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 = 1024>
void dsp::simple_flanger< T, MaxDelay >::reset ( )
inline

◆ set_fb()

template<class T, int MaxDelay = 1024>
void dsp::simple_flanger< T, MaxDelay >::set_fb ( float fb)
inline

◆ setup()

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

Reimplemented from dsp::modulation_effect.

Member Data Documentation

◆ delay

template<class T, int MaxDelay = 1024>
simple_delay<MaxDelay,T> dsp::simple_flanger< T, MaxDelay >::delay
protected

◆ fb

template<class T, int MaxDelay = 1024>
float dsp::simple_flanger< T, MaxDelay >::fb
protected

◆ last_actual_delay_pos

template<class T, int MaxDelay = 1024>
int dsp::simple_flanger< T, MaxDelay >::last_actual_delay_pos
protected

◆ last_delay_pos

template<class T, int MaxDelay = 1024>
int dsp::simple_flanger< T, MaxDelay >::last_delay_pos
protected

◆ lfo

template<class T, int MaxDelay = 1024>
int dsp::simple_flanger< T, MaxDelay >::lfo
protected

◆ ramp_delay_pos

template<class T, int MaxDelay = 1024>
int dsp::simple_flanger< T, MaxDelay >::ramp_delay_pos
protected

◆ ramp_pos

template<class T, int MaxDelay = 1024>
int dsp::simple_flanger< T, MaxDelay >::ramp_pos
protected

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