dp.Kinect2 Receiver Patch

Harry's icon

Hi all

So I may have thrown myself into the deep end here. I am trying to create an installation with the Kinect 2 to control Ableton Live to trigger and control music. I have manged to do this with the previous kinect and other software, but felt I needed to upgrade the equipment.

I am ratteling my brain in trying to use dp.kinect2, some of it I am understanding and some of it I am not. At the moment and I am working on to creating, or trying to find, a patch that simply receives the skeleton positional data from the dp.kinect2 patch displays the data so I can attach live.dials to them and MIDI map them over to Ableton Live.

I know this is simple stuff and I'm learning as I go along, just can't figure out how to receive and seperate each joint into numerical data in Max. If someone can point me in the right direction or provide the patch I am missing, I'd be truly grateful.

Thanks

Harry's icon

oh forgot to say, I am trying to route and unpack the Native Kinect Data of the joints

Luke Woodbury's icon

Dale's wiki for the dp.kinect objects has all the info you need: https://github.com/diablodale/dp.kinect2/wiki/Message-based-Data

diablodale's icon

Hi. Here's a quick patch that plays a midi note in Max based on the vertical position of your left hand. It also shows how to process multiple joints. This patch doesn't keep track of individual people in front of the Kinect. So, if 2 or more are present, their hand data will be merged together with chaotic fun results.

This patch works with both dp.kinect and dp.kinect2. You only need to add/remove the "2".

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

Harry's icon

Thank you again, I now understand how it all works. Your example patch made it all suddenly click. I have read all of the wiki, but I've always been more of a visual learner, just needed someone to show the very basics. I managed to hook each joint position to dial which then sends that data via cc to a dial in live which selects different notes. I appreciate all your help and have now managed to make all of my patches already. Can't wait to put it all to real use. Going to start looking how to connect an additional Kinect v1 to the v2 to improve in the accuracy, all very exciting.

Cheers again!