I have four streams of data, and I want to do realtime analysis of which data stream that provides the biggest numbers.
So far I have made a really clumpsy solution with an if-statement: if$i1>$i2 && $i3 then bang
The problem is that I have to bang the if-statement for input 2 and 3 aso. It soon becomes a pain to deal with more than 2 3 datas treams.
I wonder if there is a list object that can tell at what position in a list the highest value is …
have a look at [zl sort] and [zl slice]
Lpeak from the Lobjects does this.
Thanks, yes, I know how to find the biggest number, but what I want to do is to find out from which inlet the biggest number came from (at which position in the list is the biggest number) …
Thanks for Lpeak, this is just what I was looking for;-)
use the right outlet from [zl sort] to get the index…
FWIW, maximum object outputs the highest value and it’s index.
I always forget that you can send lists to [maximum]… thanks for that one
Log in to reply
SUBSCRIBE TO OUR NEWSLETTER
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions