Hi,
here is the java class you need to add, then change the 2 lines of code in netbeans as shown in the video, can't enclosed netbeans project, send me a mail and will send zip file
package gesture;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author liamdonaghy
*/
import oscP5.*;
import netP5.*;
public class GlobalDataStore {
OscP5 oscP5;
NetAddress myRemoteLocation;
int obj_id;
String lyric="lyric1"; //static osc ID
public static long globalData = 0;
public GlobalDataStore(){
myRemoteLocation = new NetAddress("127.0.0.1",12005);
oscP5 = new OscP5(myRemoteLocation,12001); //needs sender port
}
void set_obj_id(int id){
this.obj_id=id;
}
void set_lyric(String id){
this.lyric=id;
}
String ret_lyric(){
return this.lyric;
}
void send(String address, int data){
OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);
}
void send(String address, float data){
OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);
}
void send(String address, String data){
OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);
}
}
// linkup.send("/daft/"+linkup.ret_lyric(),this.gesturenames.get(event.getId())); //
// GlobalDataStore linkup = new GlobalDataStore() ; //set up