Constrain value's into a specified range

    Feb 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.