if a == b then bang
I need to measure a condition, output a bang when it is met and count the number of bangs. Simple, but I cannot do it. == outputs 0 or 1 and the Counter registers both as bangs. (I think).
Can you please show me how?
OK, seems I can get somewhere with Sel but it is still not good as Counter records multiple counts as my float value is changing rapidly...
Is this what you're trying to do?
Thank you. I am not sure how to use your patch. I have one float value that is oscillating between -5 and 5. I want to register when it hits 0 (or changes from positive to negative) and at this event output one bang to my counter.
Sorry about the beginner's confusion...
bkshepard's suggestion is what I would normally do, but your [if $i1 == $i2 then bang] also works, but the problem is, your two inputs to [if] will never be equal in that patch.
Not sure what your problem is using [sel] without seeing another patch, but you should check out using [change] on the output of [sel].
Well, I have managed to make multiple working combination by now but they all output a series of bangs instead of only one bang when the Boolean operation yields 1.
I'd really appreciate if you could comment what does what in your suggestions.
---
Just wanted to add that bkshepard's suggestion does not work for me. It registers no bangs if I connect the left float to my output...
Thank you pizza olives. This works. Even though I am not sure I understand why the number in the right output changes the way it does.
Anna
Thank you again.