Forums > MaxMSP

report ascending or descending floats?


Apr 03 2012 | 10:19 am

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

Apr 03 2012 | 10:31 am

change 0. + and change 0. – maybe?

p

Apr 03 2012 | 11:37 am

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

Apr 03 2012 | 2:20 pm

[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

Apr 03 2012 | 5:07 pm

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?

Apr 04 2012 | 3:21 pm

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).

-- Pasted Max Patch, click to expand. --

Apr 05 2012 | 11:31 am

I see now. Thanks for your help

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

Forums > MaxMSP