Exponential attack decay envelope. 
This produces a natural sounding envelope. It calculates a new value each time next() is called, which can be mapped to other parameters to change the amplitude or timbre of a sound. 
- Note
- Currently doesn't work at audio rate... may need larger number types for Q8n8attack and Q8n8decay ? 
Definition at line 30 of file Ead.h.
|  | 
|  | Ead (unsigned int update_rate) | 
|  | Constructor.  More... 
 | 
|  | 
| void | setAttack (unsigned int attack_ms) | 
|  | Set the attack time in milliseconds.  More... 
 | 
|  | 
| void | setDecay (unsigned int decay_ms) | 
|  | Set the decay time in milliseconds.  More... 
 | 
|  | 
| void | set (unsigned int attack_ms, unsigned int decay_ms) | 
|  | Set attack and decay times in milliseconds.  More... 
 | 
|  | 
| void | start () | 
|  | Start the envelope from the beginning.  More... 
 | 
|  | 
| void | start (unsigned int attack_ms, unsigned int decay_ms) | 
|  | Set attack and decay times in milliseconds, and start the envelope from the beginning.  More... 
 | 
|  | 
| uint8_t | next () | 
|  | Calculate and return the next envelope value, in the range -128 to 127.  More... 
 | 
|  |