So I'm working on a velocity-sensitive virtual percussion instrument powered by Max which uses the Kinect. Initially, I planned on using Wii remotes to determine velocities, but as they proved to be a royal pain to get working at all, I'm ditching them in favor of the Kinect.
I've seen plenty of posts around which give you the mathematical calculations to work out velocity from two given points in space over time, but how can I actually apply that in Max? Does anybody have some existing code that does something similar or even have a starting point?
At some stage I plan on converting these velocities and making the patch compatible with MIDI (once I have the velocity in Mp/s or whatever, that should be easy with the scale object), but I need to figure out where to start. Any help is appreciated!