tenv
Files: tenv.h, tenv.c
Trigger based linear AHD envelope generator
sp_tenv_create(sp_tenv **tenv)
sp_tenv_init(sp_data *sp, sp_tenv *tenv)
sp_tenv_compute(sp_data *sp, sp_tenv *tenv, SPFLOAT *trig, SPFLOAT *out)
sp_tenv_destroy(sp_tenv **tenv)
Optional Parameters
atk: Attack time, in seconds.
(Default value: 0.1)
hold: Hold time, in seconds.
(Default value: 0.3)
rel: Release time, in seconds.
(Default value: 0.2)
Inputs
trig: Trigger input. When non-zero, the envelope will (re)trigger.
Outputs
out: Signal output