export an applet with OSCP5
in
Integration and Hardware
•
1 year ago
hello everybody
I've a problem for export an applet with the oscp5 library. The applet is ok, but when I use the function for send OSC, the page stop. Id read than I need for this problem give this object public ? How can I make this ?
my class is :
- class Osc{
- float variable;
- /////constructor///////
- Osc(){
- oscP5 = new OscP5(this,3000);
- myRemoteLocation = new NetAddress('receiver IP',3000);
- variable=0;
- }
- void envoi(float variable, String patch){
- OscMessage myMessage = new OscMessage(patch);myMessage.add(variable);
- oscP5.send(myMessage, myRemoteLocation);
- }
- void oscEvent(OscMessage theOscMessage) {}
- }
Thank you!
1