slice
Files: slice.h, slice.c
Yet another slice-based sample player.
This module takes in an audio buffer and a table with slice points.
sp_slice_create(sp_slice **slice)
sp_slice_init(sp_data *sp, sp_slice *slice, sp_ftbl *vals, sp_ftbl *buf)
sp_slice_compute(sp_data *sp, sp_slice *slice, SPFLOAT *trig, SPFLOAT *out, SPFLOAT *out_right)
sp_slice_destroy(sp_slice **slice)
Mandatory Parameters
vals: A table containing slice points, in samples
(Recommended value: N/A)
buf: The buffer containing the audio samples.
(Recommended value: N/A)
Optional Parameters
id: Value position.
(Default value: 0)
Inputs
trig: When non-zero, (re)triggers samples
Outputs
out: Signal output.
out_right: Stereo right output for slice.