How about you compare the current value with the previous value?
ex.
[fexpr~ $x[0] < $x[-1] ]
The result is zero everywhere, except when the phasor~ resets itself. Then, you can use [threshold~ 0.5] to trigger a bang.
Chuck
On Fri, Dec 5, 2008 at 8:45 AM, Marko Timlin susi@timlin.de wrote:
Hi, [phasor~] ramps continuosly from 0 to 1. I would like to get a [0< message each time [phasor~] reaches its end, thus each time [phasor~] reaches 1. Seems easy but I got somehow stuck. Would be very easy if I would have to deal only with ordinary numbers, but in this case I have an audio signal... Any ideas?
Any help would be highly appreciated.
Marko
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list