Forums > MaxMSP

Reseting the Minimum

April 9, 2008 | 9:20 am

Hey there,

Many thanks to VZE1 on helping me with my earlier question. I do have a new one now, but I suspect there is an even simpler answer that is just out of my grasp:

I have a source that is rapidly giving me a random set of numbers. I would like to have a Flonum object that only reports the highest number. Suppose I first get a .002 … it will indicate that until a .056 comes in, and then it can never go lower than that. Sort of like a minimum that resets itself every time it gets a new higher number. Thanks!!


April 9, 2008 | 10:43 am

On 9 avr. 08, at 11:20, Brent Huras wrote:

> I have a source that is rapidly giving me a random set of numbers. I
> would like to have a Flonum object that only reports the highest
> number. Suppose I first get a .002 … it will indicate that until
> a .056 comes in, and then it can never go lower than that. Sort of
> like a minimum that resets itself every time it gets a new higher
> number. Thanks!!

You can connect the output of [maximum 0.] to it’s rightmost input
(thru a [float] or float numbox).

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max


April 9, 2008 | 11:05 am

Have a look at [peak].

Ciao.


April 9, 2008 | 2:28 pm

You can also use lp.stacey, which tracks min/max/mean as well as standard deviation and several other statistical characteristics of incoming data.

Part of the Litter Starter Pack. URI below.

Best — Peter


Viewing 4 posts - 1 through 4 (of 4 total)