Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,7 @@
import com.leapmotion.leap.Finger;
import com.leapmotion.leap.Frame;
import com.leapmotion.leap.Gesture;
import com.leapmotion.leap.GestureList;
import com.leapmotion.leap.Listener;
class SynthListener extends Listener {

@@ -16,13 +17,23 @@ public void onConnect(Controller controller) {

public void onFrame(Controller controller) {
Frame frame = controller.frame();
GestureList gList = frame.gestures();
for(Gesture g: gList){
switch(g.type()){
case TYPE_SWIPE:
System.out.println("heyo, swipe right");
gh.changeInstrument(true);
System.out.println("");
break;
}
}
Finger f = frame.hands().leftmost().fingers().frontmost();
int id = f.id();
float noteY = frame.hands().leftmost().finger(id).tipPosition().getY();
int i = (int)(noteY/ 60);
if(pitch != i){
pitch = i;
System.out.println(noteY + " " + i);
//System.out.println(noteY + " " + i);
gh.changePitch(pitch);
}