clock
Files: clock.h, clock.c
Resettable clock with subdivisions
sp_clock_create(sp_clock **clock)
sp_clock_init(sp_data *sp, sp_clock *clock)
sp_clock_compute(sp_data *sp, sp_clock *clock, SPFLOAT *trig, SPFLOAT *out)
sp_clock_destroy(sp_clock **clock)
Optional Parameters
bpm: Clock tempo, in beats per minute.
(Default value: 120)
subdiv: Clock subdivision. 2 = eighths, 4 = 16ths, etc.
(Default value: 1)
Inputs
trig: When non-zero, will reset clock
Outputs
out: Clock output.