thresh
Detect input above a certain level
new thresh()
Methods
next(x, lowThresh, highThresh): out1
Arguments
Name | Type | Default | Description |
---|---|---|---|
x | number | ||
lowThresh | number | ||
highThresh | number | 1 |
Returns
Name | Type | Description |
---|---|---|
out1 | number | Outputs a 0 until the high threshold has been met and a 1 whenever the high threshold has been exceeded and not yet reset (meaning the incoming value has not yet dipped below the low threshold). |