timed threshold
hi
This may seem an obvious one, but I need to report on and trigger from a rapidly changing float every time it (only) rises above a certain threshold from 0 value (max value 1) within a certain time. can I use thresh or peak or quickthresh or line or something like that?
Not sure I've got a handle on this completely, but I'd try something like...
- start a timer when your signal drops below the threshold (or hits zero, etc.)
- stop the timer when your signal rises above the threshold
- evaluate the elapsed time and act if it's short enough.
Almost every time I play with data and thresholds I go in search of Eric Singer's(?) hysteresis object. You might find it helpful, too.
Good Luck.
Richard Warp wrote:
> This may seem an obvious one, but I need to report on and trigger
> from a rapidly changing float every time it (only) rises above a
> certain threshold from 0 value (max value 1) within a certain time.
> can I use thresh or peak or quickthresh or line or something like
> that?
What about this?
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com