Closed cansik closed 8 years ago
thanks for spotting this. I have just updated to 2.0.4.
Bundles can now be received via oscEvent(OscBundle)
, see the oscP5bundle example.
Oh ok, that could have saved me some hours of extending your code haha :+1:
Is version 2.0.4
also in the processing repository? I just find the version 0.9.9
?
Bundle support works, thank you! But because of the default-size of the message array, I always get too much messages to process (by default 10). How can I get the number of the received messages? Wouldn't it be better to use an ArrayList
?
2.0.4 is only available from this github repo. the processing library manager currently still picks up 0.9.9, this repo's version has still some hiccups like this bundle issue.
Not sure if I understand the second part though, by 'the message array' are you referring to an array inside your code? Messages inside a Bundle are stored inside an ArrayList. you can get the size of that list by calling theBundle.size()
.
Ah ok, yeah maybe it's a wrong implementation of the osc sender. I'm not the developer of the sender, only of the receiver. Yeah it's a list sorry, i was just confused by the processing debugger which still is a bit strange.
Thank you for the fast response!
There is a bug in the method
parseBundle()
in OscPatcher where you choose the wrong data map. Instead of the one you just split, you take the bundle map:So it should be:
Took me some hours to notice this bug. Cheers Florian