rpt

Files: rpt.h, rpt.c

Trigger based beat-repeat stuttering effect
When the input is a non-zero value, rpt will load up the buffer and loop a certain number of times. Speed and repeat amounts can be set with the sp_rpt_set function.

Functions

sp_rpt_create(sp_rpt **rpt)
sp_rpt_init(sp_data *sp, sp_rpt *rpt, SPFLOAT maxdur)
sp_rpt_compute(sp_data *sp, sp_rpt *rpt, SPFLOAT *trig, SPFLOAT *input, SPFLOAT *out)
sp_rpt_destroy(sp_rpt **rpt)

Mandatory Parameters

maxdur: Maximum delay duration in seconds. This will set the buffer size.
(Recommended value: 0.7)

Inputs

trig: When this value is non-zero, it will start the repeater.
input: The signal to be repeated.

Outputs

out: Signal out. This is passive unless explicity triggered in the input.