spike~
Description
spike~ reports intervals of zero to non-zero transitions.
Examples

spike~ reports how often a zero to non-zero transition occurs in its input signal
Arguments
refractory-period [int or float]
Optional
Unitsms
Sets the refractory period.
Attributes
Common Box Attributes
Messages
bang
signal
In left inlet: A signal to be analyzed. The spike~ object analyzes an incoming signal and reports the interval, in milliseconds, between transitions between zero and non-zero signal values. You can specify a refractory period, which defines how soon after detecting a transition the spike~ object will report the next instance.
Output
float
The interval, in milliseconds, since the last zero to non-zero signal transition has occurred (which includes the refractory period, if one is set).
See Also
Name | Description |
---|---|
change~ | |
edge~ | |
zerox~ |