smoothdelay

Files: smoothdelay.h, smoothdelay.c

Smooth variable delay line without varispeed pitch. Smooth delay is based off the sdelay module in Faust. The smooth delay algorithm involves a double delay line. Any time the delay time changes, the delay time of buffer not heard changes, then is crossfaded to that buffer.

Functions

sp_smoothdelay_create(sp_smoothdelay **smoothdelay)
sp_smoothdelay_init(sp_data *sp, sp_smoothdelay *smoothdelay, SPFLOAT maxdel, uint32_t interp)
sp_smoothdelay_compute(sp_data *sp, sp_smoothdelay *smoothdelay, SPFLOAT *in, SPFLOAT *out)
sp_smoothdelay_destroy(sp_smoothdelay **smoothdelay)

Mandatory Parameters

maxdel: Maximum delay time (in seconds)
(Recommended value: 1)
interp: interpolation time (in samples)
(Recommended value: 1024)

Optional Parameters

feedback:
(Default value: 0.1)
del:
(Default value: 0.5)

Inputs

in: Signal input.

Outputs

out: Signal output.