tseq

Files: tseq.h, tseq.c

Function table looper
TSeq runs through values in an ftable. It will change values when the trigger input is a non-zero value, and wrap around when it reaches the end.

Functions

sp_tseq_create(sp_tseq **tseq)
sp_tseq_init(sp_data *sp, sp_tseq *tseq, sp_ftbl *ft)
sp_tseq_compute(sp_data *sp, sp_tseq *tseq, SPFLOAT *trig, SPFLOAT *val)
sp_tseq_destroy(sp_tseq **tseq)

Mandatory Parameters

ft: An ftable of values
(Recommended value: N/A)

Optional Parameters

shuf: When shuf is non-zero, randomly pick a value rather than cycle through sequentially.
(Default value: 0)

Inputs

trig: Trigger.

Outputs

val: Value from current position in the ftable.