Constrain value's into a specified range
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.
Any help would be greatly appreciated.
Best
Björn Halldór
I think you need the clip object:
[scale] and [zmap] are useful too, they will preserve the range proportionally.
Thanks, this is just what I was looking for.