We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › sending bolean[] via osc
Page Index Toggle Pages: 1
sending bolean[] via osc (Read 526 times)
sending bolean[] via osc
Jan 23rd, 2008, 4:58pm
 
hello,

can boolean[] array be send via osc ?

btw; what this error means: type of Argument not defined in osc specs.

if(g){
  switchboard.mapSwitchboard(v);
  //switchboard.testPrint();
  //osc send
  boolean[] ill = switchboard.getSwitchBoard();
  OscMessage msg = new OscMessage("/switchboard");
  msg.add(ill);
  oscP5.send(msg, myRemoteLocation);
 }

thanks!


Re: sending bolean[] via osc
Reply #1 - Jan 23rd, 2008, 6:49pm
 
forwarding a boolean array is indeed not available. must have forgotten. what you can do for now:
Code:

boolean[] ill = switchboard.getSwitchBoard();
OscMessage msg = new OscMessage("/switchboard");
for(int i=0;i<ill.length;i++) {
msg.add(ill[i]);
}
oscP5.send(msg, myRemoteLocation);
Page Index Toggle Pages: 1