Can anyone advise me how to replace mouse
input to kinect
input using processing?
Instead of mouse tracking
, I want to switch it to hand tracking using kinect
. Do the same with hand gestures instead of finger movement on a laptop track pad.
The base code is Sine Wave Signal (File/Examples/minim/Sine Wave Signal) in processing.
import ddf.minim.*;
import ddf.minim.signals.*;
AudioPlayer player;
Minim minim;
AudioOutput out;
SineWave sine;
void setup()
{
size(1018, 400, P2D);
minim = new Minim(this);
// get a line out from Minim, default bufferSize is 1024, default sample rate is 44100, bit depth is 16
out = minim.getLineOut(Minim.STEREO);
// create a sine wave Oscillator, set to 440 Hz, at 0.5 amplitude, sample rate from line out
sine = new SineWave(60, 0.9, out.sampleRate());
// set the portamento speed on the oscillator to 200 milliseconds