tin

Files: tin.h, tin.c

Similar to in, tin reads SPFLOATs (by default, this is a 4 byte binary float) from standard input every time it is triggered. behaves like a sample and hold, retaining the previous value (initial set to 0) until triggered.

Functions

sp_tin_create(sp_tin **tin)
sp_tin_init(sp_data *sp, sp_tin *tin)
sp_tin_compute(sp_data *sp, sp_tin *tin, SPFLOAT *trig, SPFLOAT *out)
sp_tin_destroy(sp_tin **tin)

Inputs

trig: When non-zero, reads a single SPFLOAT from standard input.

Outputs

out: Signal output.