[PD] smallest number from a stream of numbers

Frank Barknecht fbar at footils.org
Wed Jul 9 19:07:21 CEST 2008


Hallo,
Hans Roels hat gesagt: // Hans Roels wrote:

> I don't think you need lists for this, just 2 
> objects [min] [trigger] and an initial value. in 
> attach is an example with a random stream of numbers.

That's the general approach to find min and max in a stream of numbers
and it's internally used in [list-minmax] as well. But if you want to
find "local" extrema, you have to do some more housekeeping, that's
where [list-lastx] comes into play.

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__




More information about the Pd-list mailing list