Python help? Export OSC data to Processing

Hey, thanks that was an interesting way too but I actually got OSC working! Just having some issues with the data type, can you please help with this?

So my python code basically sends

  for x in range(len(data)):
        client.send_message("/filter", float(data[x]))

My processing program receives:

public void rawReceived(float[] allPoints) {

  // receive the array of allPoints and store them 
  for (int i=0; i < allPoints.length; i++) {
    rawPoints[i] = allPoints[i];
    println(rawPoints[i]);
  }
}

It prints each number on a new line ie: but I just need to store them as packets of 7.

0.11
0.40
0.33
0.60
0.40
0.20
0.50
0.12
0.41
0.3
0.63
0.41
0.21
0.50
...

I want:

array 1 = {0.11, 0.12,...}  //1st,7th,14th,21st....variable printed
array 2  = {0.40, 0.41,...} //2nd, 8th, 15th, 22nd....
 .....
array 7 = {0.50,0.50,...}
1 Like