Rounding Numbers

Isosceles_CAT's icon

Hello, I have an incoming stream of numbers that I would like to be able to round to useful values.

So if the stream coming in was: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14...

I could, for example, round it to:
1,1,1,3,4,4,4,7,7,7,7,7,12,12,14...

Hoping to do this with MAX's standard objects if possible... Can anyone point me in the right direction please?

Thank you kindly,
Joshua

Jakob Riis's icon

this can be done in a lot of different ways, using [split] is one option
[if] another...

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

/J

Isosceles_CAT's icon

Great! Thanks very much, Jakob! :)

Joshua

Stephen Lee's icon

Seems like table would be the simplest solution.