change object for float numbers

Nicolas Deflache's icon

Hello,

I would like to output changes in a float when these changes exceed 0.01

Max Patch
Copy patch and select New From Clipboard in Max.

I have a simple solution in the patch below, but there is probably something more efficient. Any ideas ?

Nicolas

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

I'd probably just scale your normalised output and use a regular [change] object dealing with integers.

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

Does this do what you want?

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

I thought that this should work, but it seems to round the number:

Nicolas Deflache's icon

Thank you.

Max Patch
Copy patch and select New From Clipboard in Max.

Actually... my proposition (using integers) turns out quicker, it seems... As far as my test is reliable ?

Nicolas

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

The test was not quite apples to apples, as there was a number box in the other tests that wasn't in yours. Your method is still the fastest, just not by as much.

Yann Longchamp's icon

How to turn the result into a Toggle ?