Forums > MaxMSP

Constrain value's into a specified range

February 25, 2013 | 6:09 pm

I am trying to constrain two sets of values into a certain range of numbers to control audio output. I have a ball in a 3d world and I want to use the x and y values of the ball to control audio output, which has the range of 0 to 127. I know there must be a very simple way of doing this but with my very limited knowledge of Max I haven’t been successful in finding one.


February 25, 2013 | 6:29 pm

Any help would be greatly appreciated.

Best
Björn Halldór


February 25, 2013 | 6:43 pm

I think you need the clip object:

http://www.cycling74.com/docs/max6/dynamic/c74_docs.html#clip


February 26, 2013 | 2:19 am

[scale] and [zmap] are useful too, they will preserve the range proportionally.


February 26, 2013 | 10:01 am

Thanks, this is just what I was looking for.


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