Hi, I need some help unpacking a packet of parsed data coming from an arduino.
I'm trying to collect data from an eeg device and use this data to control parameters of a synth built in max.
The data comes in through the serial device, and should be in a packet of eleven values. For instance
200, 0, 0, 103589, 698790,247658,278765,172456,567898,678543,456763
The values are updated and sent as a new packet once per second.
I need a way of unpacking, and separating the data, so that each of the eleven values can be fed into a separate number box.
I don't really know enough about what I'm doing. I worked out from reading the max tutorials that the data comming in is integer and it needs to be a different format to work in max?
If attached a basic patch I've tried to construct based on the max tutorial for unpacking serial data. I had it working a little bit when I spent a while playing with different setups and removing objects etc, but it was only collecting four values, not the eleven values that it should be reading.
for instance, it will generate numbers into the boxes
44, 50, 44, 55, 49, 48, 44, 50 ... etc
it also only seems to be updating once every three seconds, even though the metro is set to 100
I'm new to all this, and as it stands its no longer working. The serial monitor in the arduino software is reading the packet data as it should, so its just a case of max interpreting this data into something usable that I'm struggling with.
Thank you very much for any help you can provide.