report ascending or descending floats?

tomslater's icon

Hello,

Does anyone know of an object that will route, gate, report or somehow differentiate between a stream of ascending or descending floating point numbers?

Thanks,

Tom

pdelges's icon

change 0. + and change 0. - maybe?

p

tomslater's icon

Thanks Patrick, you're right I needed a combination of Change 0.+ and 0. -, pack and route

Roman Thilenius's icon

[if $f1>$f2 then 1 else 0] or [if $f1>$f2 then $f1 else out2 $f1], simply connect input to both inlets of [if].

-110

tomslater's icon

Thanks Roman but those if statements don't work for me. I did try them before posting as it seemed the most logical way. Have you had success with this?

pdelges's icon
Max Patch
Copy patch and select New From Clipboard in Max.

It does work, but the floats have to be sent in the right order. Here is Roman's idea and something even simplier (as often, there are many ways to do one thing).

tomslater's icon

I see now. Thanks for your help