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?
Thank you
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?
hi!
this could have several reasons:
high rates
"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.
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
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
On Fri, Nov 13, 2009 at 2:38 PM, Martin Schied crinimal@gmx.net wrote:
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?
hi!
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
On Fri, 13 Nov 2009, Konstantinos Benardis wrote:
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?
[>=]
|
[t a a]
\ /
X
/
[!= ]
will check whether you are above or below, and then will check whether this status has changed since last message.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801