arduino-audio-tools
|
Generates ADSR values between 0.0 and 1.0. More...
#include <AudioParameters.h>
Public Member Functions | |
ADSR (ADSR ©)=default | |
ADSR (float attack=0.001, float decay=0.001, float sustainLevel=0.5, float release=0.005) | |
float | attackRate () |
float | decayRate () |
bool | isActive () |
void | keyOff () |
void | keyOn (float tgt=0) |
float | releaseRate () |
void | setAttackRate (float a) |
void | setDecayRate (float d) |
void | setReleaseRate (float r) |
void | setSustainLevel (float s) |
float | sustainLevel () |
virtual float | tick () |
virtual float | value () |
Protected Types | |
enum | AdsrPhase { Idle , Attack , Decay , Sustain , Release } |
Protected Member Functions | |
float | update () |
Generates ADSR values between 0.0 and 1.0.