Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADSR Class Reference

Public Member Functions

float process (void)
 
float process (int sampleCount)
 
float getOutput (void)
 
int getState (void)
 
void gate (int on)
 
void setAttackRate (float rate)
 
void setDecayRate (float rate)
 
void setReleaseRate (float rate)
 
void setSustainLevel (float level)
 
void setTargetRatioA (float targetRatio)
 
void setTargetRatioDR (float targetRatio)
 
void reset (void)
 

Protected Member Functions

float calcCoef (float rate, float targetRatio)
 

Protected Attributes

int state
 
float output
 
float attackRate
 
float decayRate
 
float releaseRate
 
float attackCoef
 
float decayCoef
 
float releaseCoef
 
float sustainLevel
 
float targetRatioA
 
float targetRatioDR
 
float attackBase
 
float decayBase
 
float releaseBase
 
std::string name
 

Detailed Description

Examples:
Audio/envelope-generator/render.cpp.

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