Microsoft Kinect To Midi

Enables writing Kinect applications, games, and experiences using Python. Inspired by the original PyKinect project on CodePlex.

8 ) Set the ID of the MIDI device you want KMIDIC to output to. In Processing, click on the first tab (Kinect MIDIControllervx.x) and look for the line that says: int midiOutputDeviceId = 0; Set the value to the index of the output MIDI device you want to use. Kinect MIDI Controller is an open source project designed to let you use a Microsoft Kinect as a MIDI controller. The the project uses Microsoft Kinect SDK to track the skeletal data. The Kinect SDK provides the logic to detect the X and Y Co-ordinates of a user’s hands. The X & Y Co-ordinates are then scaled and converted to MIDI messages.

Only color, depth, body and body index frames are supported in this version.PyKinectBodyGame is a sample game. It demonstrates how to use Kinect color and body frames.

Prerequisites

The easiest way to get most of the pre-requisites is to use Anaconda which includes NumPy. You'll then need to pip install comtypes. The PyKinectBodyGame sample requires PyGame which needs to be manually installed.

Microsoft Kinect For Windows

  1. Download Anaconda get the 32-bit version. This includes NumPy.
  2. pip install comtypes
  3. Install the Kinect for Windows SDK v2

Full List of Dependencies

  • Kinect v2 sensor and adapter Note: you can use a Kinect for Xbox One as long as you also have the Kinect Adapter for Windows
  • PyGame - for running PyKinectBodyGame sample
Microsoft kinect specs

Installation

Microsoft

The package can be installed through pip using the usual means:

If you are using a virtual environment, be sure to activate it first.

For more information, please see https://pip.pypa.io/en/latest/user_guide.html#installing-packages

Installation (Manual)

To install the package manually, clone this repository to a local folder and include it in the appropriate python environment. If installing in a virtual environment, be sure to install all required dependencies (above).

For example:

After installation is complete, you can launch the interactive python shell and import pykinect2 to ensure everything has been installed properly.

Core helper classes for working with the Kinect sensor are located in PyKinectRuntime.py. For usage examples, please see /examples/PyKinectBodyGame.py.