XML Feeds

.

[javascript-dev] many floats many inlets problem.

Adam Chambers chambaz_ at hotmail.com
Sat Mar 29 17:43:42 MDT 2008


Im really confusing myself here although the answer is probs simple, any help would be much appreciated.

I have 15 floats all constantly changing, i need to find the largest and more importantly which one of the float objects sent the largest number so i can use it to trigger a specific msg. I need it to be a constantly changing thing.

I tried using an array to store all the numbers and then using sort() etc but the problem is I need to know which of the fifteen float objects sent the largest number.

One idea i had was to have each float entering a different inlet but how could i have one function for all fifteen inlets or compare variables from different inlets. 

Any ideas?

Thanks a lot in advance, 


More information about the javascript-dev mailing list