Recreating Drive & Compand curves used in Ableton Velocity device

Jay's icon

Hi,

Can anyone help recreating the curves that are used in Ableton's Velocity device? I'd like to use the same dials (Drive and Compand) to scale other types of incoming data.

Here's what I have so far for the Drive function but something is a little bit off in the math.

Max Patch
Copy patch and select New From Clipboard in Max.

Having more trouble figuring out the compression/expansion curves. I've messed around with the expr object a little and that seems to be the way in but I'm coming up blank when it comes to the actual expressions to use. Any insight into these would be awesome!

Jay's icon

I've gotten a little further with this, and wanted to give it a bump in the Max/MSP rather than Max for Live forum. Been scoping out some interpolation tricks but still having trouble with the Compand curve, as well as the "speed" at which the Drive curve develops compared to the Ableton one. Any help would be wonderful!

Max Patch
Copy patch and select New From Clipboard in Max.

Edsko de Vries's icon

I don't know if you're still looking for this -- your post is almost exactly a year old now -- but hey, better late than never :) I happened to need this as well, and worked out the maths. Wrote a short blog post about it along with some code that you should be able to reuse. Hope this helps you or anyone else who happens to stumble across this thread :)