Codebox Operators zerox

zerox

Detect zero crossings

new zerox()

Methods

next(x): out1

Arguments

NameTypeDefaultDescription
xnumber

Returns

NameTypeDescription
out1number

Outputs a 0 when the last two received values do not cross the zero point or a 1 when they do.

reset(): void