I've started working with a Microsoft Kinect, and for now I've (arbitrarily) scaled the incoming data streams coming into Max to a 0-127 range. Some of the parameters I want to control are filter frequencies, which don't work well being controlled by the linear data I'm currently receiving.
My question is: how would I go about changing the incoming linear data to a logarithmic scale suitable for use with frequency?
I've tried a few methods so far, all of which either flat-out don't work, or end up being only vague approximations of the curve I need to generate, but I'd like to make this precise. I'm assuming it involves writing an equation with the [expr] object, but my math skills are pretty weak.
Any help is appreciated, thank you!