tenvx

Files: tenvx.h, tenvx.c

Trigger based exponential AHD envelope generator. This envelope generator emulates the exponential behavior of analogue envelope generators by passing a gate signal (whose duration is specified via the hold parameter) through a one-pole filter, whose filter coefficeints are calculated in terms of tau.

Functions

sp_tenvx_create(sp_tenvx **tenvx)
sp_tenvx_init(sp_data *sp, sp_tenvx *tenvx)
sp_tenvx_compute(sp_data *sp, sp_tenvx *tenvx, SPFLOAT *trig, SPFLOAT *out)
sp_tenvx_destroy(sp_tenvx **tenvx)

Optional Parameters

atk: Tau attack time, in seconds. Must be non-zero.
(Default value: 0.1)
hold: Hold time, in seconds. The duration of the gate signal.
(Default value: 0.3)
rel: Tau release time, in seconds. Must be non-zero.
(Default value: 0.2)

Inputs

trig: Trigger input. When non-zero, the envelope will (re)trigger.

Outputs

out: Signal output