Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
if i understood you question, hope it helps.
From: jbturgid@hotmail.com To: pd-list@iem.at Date: Wed, 23 Dec 2009 13:09:28 +0000 Subject: [PD] Finding the highest number
Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
Have more than one Hotmail account? Link them together to easily access both.
Windows 7: Encontre o PC certo para si. Mais informações.
_________________________________________________________________
Novo Windows 7: Encontre o PC certo para si. Mais informações.
http://windows.microsoft.com/shop
thanks for that, it was exactly what I needed. Sans a reset, which was simply a [0 ( to the floats. Cheers.
From: wavfreak@hotmail.com To: pd-list@iem.at Date: Wed, 23 Dec 2009 13:35:29 +0000 Subject: [PD] FW: Finding the highest number
if i understood you question, hope it helps.
From: jbturgid@hotmail.com To: pd-list@iem.at Date: Wed, 23 Dec 2009 13:09:28 +0000 Subject: [PD] Finding the highest number
Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
Have more than one Hotmail account? Link them together to easily access both.
Windows 7: Encontre o PC certo para si. Mais informações.
Windows 7: Encontre o PC certo para si. Mais informações.
_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
http://clk.atdmt.com/UKM/go/186394591/direct/01/
i think there is an object named local_max or max_local in mapping or pure_mapping that is doing what you describe. c
Andrew Faraday a écrit :
Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
Have more than one Hotmail account? Link them together to easily access both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/%3E
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Look at the patch. ++
Jack
Le mercredi 23 décembre 2009 à 13:09 +0000, Andrew Faraday a écrit :
Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
Have more than one Hotmail account? Link them together to easily access both. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi, Andrew,
I would do it this way:
#N canvas 441 374 450 300 10; #X floatatom 140 3 5 0 0 0 - - -; #X obj 140 81 moses; #X floatatom 209 84 5 0 0 0 - - -; #X obj 172 27 sel; #X msg 172 54 0; #X connect 0 0 1 0; #X connect 0 0 3 0; #X connect 1 1 2 0; #X connect 2 0 1 1; #X connect 3 0 4 0; #X connect 4 0 1 1; #X connect 4 0 2 0;
The simplest method I've found yet :)
В Срд, 23/12/2009 в 13:09 +0000, Andrew Faraday пишет:
Hey All
I'm looking for a way to find the highest figure in a stream of input. In this case to find the top score in a little game I'm working on. I need a system that will remain on the highest number inputted until it's increased or reset to 0.
It should be simple but I'm struggling, any suggestions?
Andrew
Have more than one Hotmail account? Link them together to easily access both. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list