line
Files: line.h, line.c
Produce a line segment with linear slope
This will generate a line from value A to value B in given amount of time.
When it reaches it's target, it will stay at that value.
sp_line_create(sp_line **line)
sp_line_init(sp_data *sp, sp_line *line)
sp_line_compute(sp_data *sp, sp_line *line, SPFLOAT *trig, SPFLOAT *out)
sp_line_destroy(sp_line **line)
Optional Parameters
a: Inital point.
(Default value: 0)
dur: Duration (in seconds)
(Default value: 0.5)
b: End point
(Default value: 1)
Inputs
trig: When non-zero, will retrigger the line slope.
Outputs
out: Signal output.