Indeed the number was not in the stream. I was changing the number with the mouse which does not produce all the numbers in the serie.
Thank you
hi!
Konstantinos Benardis wrote:
Hi list
I want to trigger a bang when a specific number occurs in a serie of running numbers for example from the output of a line object. I use the [== ] object to lookup but the object wont work if the numbers are running too fast. What could be the problem? Is there another way to do the lookup?
this could have several reasons:
- if you are using graphical bangs they don't blink when triggered at high rates
- possibly be the number doesn't appear in the stream - try to use "print" and look if the number is actually there. the line object only outputs some numbers between its start and end. if you want to have all integer numbers between start and end you could use counters, see attached patch.
- the value is a float value and doesnt exactly match the value to be compared with, even when displayed as equal when using a number to display them. to solve this either use an [int] object before comparing the numbers or give a range, for example to compare 4 and 4.000000001 to be "equal" you could use 4 - 4.000000001 <= 0.001
cheers,
martin