randh

Files: randh.h, randh.c

Random number generator with hold time.

Functions

sp_randh_create(sp_randh **randh)
sp_randh_init(sp_data *sp, sp_randh *randh)
sp_randh_compute(sp_data *sp, sp_randh *randh, SPFLOAT *out)
sp_randh_destroy(sp_randh **randh)

Optional Parameters

min: Minimum value to use.
(Default value: 0)
max: Maximum value to use.
(Default value: 1)
freq: Frequency of randomization (in Hz)
(Default value: 10)

Outputs

out: Signal output.