Rounding Numbers

Aug 30, 2008 at 1:43pm

Rounding Numbers

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

#39487
Aug 30, 2008 at 2:12pm

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

– Pasted Max Patch, click to expand. –

/J

#139138
Aug 30, 2008 at 2:18pm

Great! Thanks very much, Jakob! :)

Joshua

#139139
Aug 30, 2008 at 8:05pm

Seems like table would be the simplest solution.

#139140

You must be logged in to reply to this topic.