ADSR Envelope: Attack, Decay, Sustain and Release. Attack is the time taken for initial run-up oeffect_tf level from nil to peak, beginning when the key is pressed. Decay is the time taken for the subsequent run down from the attack level to the designated sustainLevel level. Sustain is the level during the main sequence of the sound's duration, until the key is released. Release is the time taken for the level to decay from the sustainLevel level to zero after the key is released.[4].
More...
#include <AudioEffect.h>
|
| int16_t | clip (int32_t in, int16_t clipLimit=32767, int16_t resultLimit=32767) |
| | generic clipping method
|
| |
| void | copyParent (AudioEffect *copy) |
| |
ADSR Envelope: Attack, Decay, Sustain and Release. Attack is the time taken for initial run-up oeffect_tf level from nil to peak, beginning when the key is pressed. Decay is the time taken for the subsequent run down from the attack level to the designated sustainLevel level. Sustain is the level during the main sequence of the sound's duration, until the key is released. Release is the time taken for the level to decay from the sustainLevel level to zero after the key is released.[4].
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ ADSRGain() [1/2]
| ADSRGain |
( |
float |
attack = 0.001, |
|
|
float |
decay = 0.001, |
|
|
float |
sustainLevel = 0.5, |
|
|
float |
release = 0.005, |
|
|
float |
boostFactor = 1.0 |
|
) |
| |
|
inline |
◆ ADSRGain() [2/2]
◆ ~ADSRGain()
◆ active()
determines if the effect is active
◆ attackRate()
◆ clip()
| int16_t clip |
( |
int32_t |
in, |
|
|
int16_t |
clipLimit = 32767, |
|
|
int16_t |
resultLimit = 32767 |
|
) |
| |
|
inlineprotectedinherited |
◆ clone()
◆ copyParent()
◆ decayRate()
◆ id()
Allows to identify an effect.
◆ isActive()
◆ keyOff()
◆ keyOn()
| void keyOn |
( |
float |
tgt = 0 | ) |
|
|
inline |
◆ process()
calculates the effect output from the input
Implements AudioEffect.
◆ releaseRate()
◆ setActive()
| virtual void setActive |
( |
bool |
value | ) |
|
|
inlinevirtualinherited |
sets the effect active/inactive
◆ setAttackRate()
| void setAttackRate |
( |
float |
a | ) |
|
|
inline |
◆ setDecayRate()
| void setDecayRate |
( |
float |
d | ) |
|
|
inline |
◆ setId()
Allows to identify an effect.
◆ setReleaseRate()
| void setReleaseRate |
( |
float |
r | ) |
|
|
inline |
◆ setSustainLevel()
| void setSustainLevel |
( |
float |
s | ) |
|
|
inline |
◆ sustainLevel()
◆ active_flag
◆ adsr
◆ factor
◆ id_value
The documentation for this class was generated from the following file: