[PD] Newbie question: Highest number

IOhannes m zmoelnig zmoelnig at iem.at
Tue Jul 31 11:11:52 CEST 2007

Alex Lucas wrote:
> Hi all,
> I've been looking for an object or abstraction which gives the highest
> and lowest value from a stream of numbers. If anyone has any suggestions
> it would be great to hear from you.

[max] and [min] are your friends here.
just feed the output of the object back to its right input.
the only remaining problem is how to initialize the objects.
a fool-proof approach is the first element of the stream.

when you are using lists instead of streams, there are also specialised
objects (if you don't want to serialize the list into single atoms),
e.g. [minmax] in zexy, but i am sure there is an internal-only solution
in the list-abs by fbar.


More information about the Pd-list mailing list