what's the object that only bangs once until reset? it's from one of the external libraries.
send a bang, then blocks until reset
its in the GEM lib
...and(cos it's quite in the same subject) there is any object that
outputs a bang whenever an audio signal get a specific value.
for example: I want that a bang message is sent whenever a [phasor] obj
is at 0 .
Is there any way to do this?
_for example: I want that a bang message is sent whenever a [phasor] obj
is at 0 . _
I don't know whether there is an object that does that, but you could make an abstraction to do it.
You can use [expr~] with relational operators ( > , < , = , etc ), and I think Zexy has an object [avg~] which outputs the average of each signal block (signals are processed in blocks of (usually) 64 samples).
One thing you have to be aware of is that there may not be a time when the phasor~ is exactly zero, because the period of the waveform might not be an exact number of samples.
Something like this might work, though:
[expr~ $v1 < 0.05] <-- change 0.05 by trial and error so you get one bang per cycle of the phasor~ (try [expr~ $v1 < $f2] )
outputs a bang at (very slightly after) the start of the [phasor~]'s cycle
i've tried using the [threshold] obj and it seems to work quite well.
i've set its borders at 0.9999 and 0.01 and i receive the -bang message
from the left outlet.