[PD] Newbie question: Highest number

Steffen Leve Poulsen slagmark at worldonline.dk
Tue Jul 31 15:52:04 CEST 2007


attached min_max.pd
Merry patching
Steffen Leve Poulsen

IOhannes m zmoelnig skrev:
> 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.
> 
> fmgasdr
> IOhannes
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: min_max.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070731/1b18e52d/attachment.txt>


More information about the Pd-list mailing list