Attack-Decay one-shot, trigger-driven. More...
#include <envelope.hpp>
Public Member Functions | |
| void | prepare (double sample_rate) |
| void | set_attack_ms (double ms) |
| void | set_decay_ms (double ms) |
| void | set_attack_curve (float c) |
| void | set_decay_curve (float c) |
| void | set_curve (double c) |
| void | set_loop (bool on, int count=0) |
| void | trigger (SampleType velocity=SampleType{1}) |
| void | gate_on () |
| void | gate_off () |
| void | reset () |
| SampleType | next () |
| SampleType | current () const |
| SampleType | value () const |
| bool | active () const |
| int | loops_completed () const |
| EnvelopeStage | stage () const |
Attack-Decay one-shot, trigger-driven.
Gate release is ignored by construction.
USE: percussion and plucks fired from TriggerDetectT or BurstGenT; modulation blips such as filter pings; anything where the event has no duration. Retriggering during the decay ramps from the current level rather than from zero, so a fast roll does not click.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| on | true to loop; count 0 loops forever, otherwise 1..128. |
|
inline |
|
inline |
|
inline |