Download The Brain Wave App Final Project Design Report

Transcript
 //initial program setup void setup() { size(125, 125); frameRate(10); background(0); println(Serial.list()); loginTwitter(); //functions that capture OSC values from Mind Your OSC’s oscP5 = new OscP5(this, 7400); oscP5.plug(this,"getDisappear","/COG/DISAPPEAR"); oscP5.plug(this,"getPush","/COG/PUSH"); oscP5.plug(this,"getPull","/COG/PULL"); oscP5.plug(this,"getLift","/COG/LIFT"); } //functions that take OSC values and assign them to a variable void getDisappear (float theValue) { disappear = theValue; println("OSC message received; new disappear value: "+disappear); } void getPush (float theValue) { push = theValue; println("OSC message received; new push value: "+push); } 68