LMMS
Loading...
Searching...
No Matches
dsp::simple_phaser Class Reference

#include <audio_fx.h>

Inheritance diagram for dsp::simple_phaser:
dsp::modulation_effect dsp::audio_effect

Public Member Functions

 simple_phaser (int _max_stages, float *x1vals, float *y1vals)
float get_base_frq () const
void set_base_frq (float _base_frq)
int get_stages () const
void set_stages (int _stages)
float get_mod_depth () const
void set_mod_depth (float _mod_depth)
float get_fb () const
void set_fb (float fb)
virtual void setup (int sample_rate)
void reset ()
void control_step ()
void process (float *buf_out, float *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::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

float base_frq
float mod_depth
float fb
float state
int cnt
int stages
int max_stages
dsp::onepole< float, float > stage1
float * x1
float * y1
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

A monophonic phaser. If you want stereo, combine two :) Also, gave up on using template args for signal type.

Constructor & Destructor Documentation

◆ simple_phaser()

simple_phaser::simple_phaser ( int _max_stages,
float * x1vals,
float * y1vals )

Member Function Documentation

◆ control_step()

void simple_phaser::control_step ( )

◆ freq_gain()

float simple_phaser::freq_gain ( float freq,
float sr ) const

◆ get_base_frq()

float dsp::simple_phaser::get_base_frq ( ) const
inline

◆ get_fb()

float dsp::simple_phaser::get_fb ( ) const
inline

◆ get_mod_depth()

float dsp::simple_phaser::get_mod_depth ( ) const
inline

◆ get_stages()

int dsp::simple_phaser::get_stages ( ) const
inline

◆ process()

void simple_phaser::process ( float * buf_out,
float * buf_in,
int nsamples,
bool active,
float level_in = 1.,
float level_out = 1. )

◆ reset()

void simple_phaser::reset ( )

◆ set_base_frq()

void dsp::simple_phaser::set_base_frq ( float _base_frq)
inline

◆ set_fb()

void dsp::simple_phaser::set_fb ( float fb)
inline

◆ set_mod_depth()

void dsp::simple_phaser::set_mod_depth ( float _mod_depth)
inline

◆ set_stages()

void simple_phaser::set_stages ( int _stages)

◆ setup()

virtual void dsp::simple_phaser::setup ( int sample_rate)
inlinevirtual

Reimplemented from dsp::modulation_effect.

Member Data Documentation

◆ base_frq

float dsp::simple_phaser::base_frq
protected

◆ cnt

int dsp::simple_phaser::cnt
protected

◆ fb

float dsp::simple_phaser::fb
protected

◆ max_stages

int dsp::simple_phaser::max_stages
protected

◆ mod_depth

float dsp::simple_phaser::mod_depth
protected

◆ stage1

dsp::onepole<float, float> dsp::simple_phaser::stage1
protected

◆ stages

int dsp::simple_phaser::stages
protected

◆ state

float dsp::simple_phaser::state
protected

◆ x1

float* dsp::simple_phaser::x1
protected

◆ y1

float * dsp::simple_phaser::y1
protected

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