and thx for your work.
Here the little sketch I code to find the limit.
import oscP5.*;
import netP5.*;
OscP5 oscP5;
NetAddress myRemoteLocation;
// OscP5 osc_receive_controller ;
void setup() {
size(400,400);
/* start oscP5, listening for incoming messages at port 12000 */
int port = 10_000 ;
oscP5 = new OscP5(this,port);
myRemoteLocation = new NetAddress("127.0.0.1",port);
}
void draw() {
background(0);
send() ;
}
int count_send = 0 ;
String string_limit = ("");
void send() {
count_send++ ;
OscMessage myMessage = new OscMessage("test");
/*
string_limit = string_limit + "a" ;
myMessage.add(string_limit); // add an int to the osc message
println("String limit", string_limit.length()) ;
*/
boolean [] bool_limit = new boolean[count_send];
for(int i = 0 ; i < bool_limit.length ; i++) {
bool_limit[i] = true ;
myMessage.add(bool_limit[i]); // add an int to the osc message
}
println("Boolean limit", bool_limit.length);
/*
int [] array_int = new int[count_send] ;
for(int i = 0 ; i < count_send ; i++) {
// array_int[i] = floor(random(MAX_INT)) ;
array_int[i] = i ;
}
myMessage.add(array_int); // add an int to the osc message
println("Array int limit", array_int.length) ;
*/
/*
float [] array_float = new float[count_send] ;
for(int i = 0 ; i < count_send ; i++) {
// array_int[i] = floor(random(MAX_INT)) ;
array_float[i] = i ;
}
myMessage.add(array_float); // add an int to the osc message
println("Array float limit", array_float.length) ;
*/
/*
myMessage.add(123); // add an int to the osc message
myMessage.add(12.34); // add a float to the osc message
myMessage.add("some text"); // add a string to the osc message
myMessage.add(new byte[] {0x00, 0x01, 0x10, 0x20}); // add a byte blob to the osc message
myMessage.add(new int[] {1,2,3,4}); // add an int array to the osc message
*/
/* send the message */
oscP5.send(myMessage, myRemoteLocation);
}