public void setup() {
   size(640, 480);
   ThinkGearSocket neuroSocket = new ThinkGearSocket(this);
   try {
     neuroSocket.start();
   } catch (ConnectException e) {
     e.printStackTrace();
   }
   smooth();
   font = loadFont("MyriadPro-Regular-24.vlw");
   textFont(font);
   frameRate(25);
   cap = new Capture(this, width, height);
   noStroke();
 }
 public void stop() {
   neuroSocket.stop();
   super.stop();
 }