delay

Files: delay.h, delay.c

Adds a delay to an incoming signal with optional feedback.

Functions

sp_delay_create(sp_delay **delay)
sp_delay_init(sp_data *sp, sp_delay *delay, SPFLOAT time)
sp_delay_compute(sp_data *sp, sp_delay *delay, SPFLOAT *input, SPFLOAT *out)
sp_delay_destroy(sp_delay **delay)

Mandatory Parameters

time: Delay time, in seconds.
(Recommended value: 1)

Optional Parameters

feedback: Feedback amount. Should be a value between 0-1.
(Default value: 0)

Inputs

input: Signal input.

Outputs

out: Signal output.