I have started messing about with the Kinect again. Finally! Mr Randall, our head honcho at North 51 kindly supplied us with a company unit so we can begin messing about with it.
I am hoping that once the holiday period dies down we can begin to really start thinking about genuine applications.
At the moment it's just a case of reminding myself of the mechanics of how it works. I thought I would once again take one of the examples that comes with the SDK and just toy with it.
I fancied a little peek at NAudio (I have been watching an Audio course on Pluralsight) so I got NAudio back out again.
The project is to create a music generator based on the location of the hands according to the kinect sensor. It also changes amplitude depending on your distance from the device.
I reallly like the way you can get a hold of the location points of the skeleton with the Kinect SDK. Once you have the skeleton getting the hands is as simple as
var leftHand = skel.Joints[JointType.HandLeft];
var rightHand = skel.Joints[JointType.HandRight];
Anyway, take a look at the code, it's in GitHub https://github.com/DominicFinn/MusicSkeleton
The code is far from fantastic but it's just a scratchpad of fiendery (as are all my Github projects, my nice projects are private on BitBucket... I don't do things for free, I have a family to feed!).
I am hoping that once the holiday period dies down we can begin to really start thinking about genuine applications.
At the moment it's just a case of reminding myself of the mechanics of how it works. I thought I would once again take one of the examples that comes with the SDK and just toy with it.
I fancied a little peek at NAudio (I have been watching an Audio course on Pluralsight) so I got NAudio back out again.
The project is to create a music generator based on the location of the hands according to the kinect sensor. It also changes amplitude depending on your distance from the device.
I reallly like the way you can get a hold of the location points of the skeleton with the Kinect SDK. Once you have the skeleton getting the hands is as simple as
var leftHand = skel.Joints[JointType.HandLeft];
var rightHand = skel.Joints[JointType.HandRight];
Anyway, take a look at the code, it's in GitHub https://github.com/DominicFinn/MusicSkeleton
The code is far from fantastic but it's just a scratchpad of fiendery (as are all my Github projects, my nice projects are private on BitBucket... I don't do things for free, I have a family to feed!).
Comments