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

#include <audio_fx.h>

Public Member Functions

 simple_lfo ()
void set_params (float f, int m, float o, uint32_t sr, float amount=1.f, float pwidth=1.f)
void set_freq (float f)
void set_mode (int m)
void set_amount (float a)
void set_offset (float o)
void set_pwidth (float p)
float get_value ()
void advance (uint32_t count)
void set_phase (float ph)
void activate ()
void deactivate ()
float get_value_from_phase (float ph) const
bool get_graph (float *data, int points, calf_plugins::cairo_iface *context, int *mode) const
bool get_dot (float &x, float &y, int &size, calf_plugins::cairo_iface *context) const

Private Attributes

float phase
float freq
float offset
float amount
float pwidth
int mode
uint32_t srate
bool is_active

Detailed Description

LFO module by Markus This module provides simple LFO's (sine=0, triangle=1, square=2, saw_up=3, saw_down=4) get_value() returns a value between -1 and 1

Constructor & Destructor Documentation

◆ simple_lfo()

simple_lfo::simple_lfo ( )

Member Function Documentation

◆ activate()

void simple_lfo::activate ( )

◆ advance()

void simple_lfo::advance ( uint32_t count)

◆ deactivate()

void simple_lfo::deactivate ( )

◆ get_dot()

bool simple_lfo::get_dot ( float & x,
float & y,
int & size,
calf_plugins::cairo_iface * context ) const

◆ get_graph()

bool simple_lfo::get_graph ( float * data,
int points,
calf_plugins::cairo_iface * context,
int * mode ) const

◆ get_value()

float simple_lfo::get_value ( )

◆ get_value_from_phase()

float simple_lfo::get_value_from_phase ( float ph) const

◆ set_amount()

void simple_lfo::set_amount ( float a)

◆ set_freq()

void simple_lfo::set_freq ( float f)

◆ set_mode()

void simple_lfo::set_mode ( int m)

◆ set_offset()

void simple_lfo::set_offset ( float o)

◆ set_params()

void simple_lfo::set_params ( float f,
int m,
float o,
uint32_t sr,
float amount = 1.f,
float pwidth = 1.f )

◆ set_phase()

void simple_lfo::set_phase ( float ph)

◆ set_pwidth()

void simple_lfo::set_pwidth ( float p)

Member Data Documentation

◆ amount

float dsp::simple_lfo::amount
private

◆ freq

float dsp::simple_lfo::freq
private

◆ is_active

bool dsp::simple_lfo::is_active
private

◆ mode

int dsp::simple_lfo::mode
private

◆ offset

float dsp::simple_lfo::offset
private

◆ phase

float dsp::simple_lfo::phase
private

◆ pwidth

float dsp::simple_lfo::pwidth
private

◆ srate

uint32_t dsp::simple_lfo::srate
private

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