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

#include <primitives.h>

Public Member Functions

 decay ()
bool get_active ()
double get ()
void set (double v)
void reinit ()
 reinitialise envelope (must be called if shape changes from linear to exponential or vice versa in the middle of envelope)
void add (double v)
void age_exp (double constant, double epsilon)
void age_lin (double constant, double epsilon)
void deactivate ()

Static Public Member Functions

static double calc_exp_constant (double times, double cycles)

Private Attributes

double value
double initial
unsigned int age
unsigned int mask
bool active

Detailed Description

decay-only envelope (linear or exponential); deactivates itself when it goes below a set point (epsilon)

Constructor & Destructor Documentation

◆ decay()

dsp::decay::decay ( )
inline

Member Function Documentation

◆ add()

void dsp::decay::add ( double v)
inline

◆ age_exp()

void dsp::decay::age_exp ( double constant,
double epsilon )
inline

◆ age_lin()

void dsp::decay::age_lin ( double constant,
double epsilon )
inline

◆ calc_exp_constant()

double dsp::decay::calc_exp_constant ( double times,
double cycles )
inlinestatic

◆ deactivate()

void dsp::decay::deactivate ( )
inline

◆ get()

double dsp::decay::get ( )
inline

◆ get_active()

bool dsp::decay::get_active ( )
inline

◆ reinit()

void dsp::decay::reinit ( )
inline

reinitialise envelope (must be called if shape changes from linear to exponential or vice versa in the middle of envelope)

◆ set()

void dsp::decay::set ( double v)
inline

Member Data Documentation

◆ active

bool dsp::decay::active
private

◆ age

unsigned int dsp::decay::age
private

◆ initial

double dsp::decay::initial
private

◆ mask

unsigned int dsp::decay::mask
private

◆ value

double dsp::decay::value
private

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