I tested out the p5-basic sketch, and modified it so each sketch sends its mouse position, and draws at the mouse position received from the other sketch. This way we can quickly test send and receive at the same time with both sketches (p5 & Processing) open.
Some modifications I made:
Added back the 'connected' variable because without it the P5 sketch was crashing on sending OSC
Also, I think there was a missing curly brace at the end of the original sketch causing it to not run.
Modified the processing and P5 sketches so that they're both sending and receiving mouse positions.
Added some comments
Also, this is just an aesthetic thing, but to make the sketch more user friendly I hid away some of the functions that most users won't need to mess with in a file 'osc.js'
Tested it a bunch for reliability and it seems to work very well.
Feel free to include any of these changes if you like.
Hi Gene,
I tested out the p5-basic sketch, and modified it so each sketch sends its mouse position, and draws at the mouse position received from the other sketch. This way we can quickly test send and receive at the same time with both sketches (p5 & Processing) open.
Some modifications I made:
Tested it a bunch for reliability and it seems to work very well.
Feel free to include any of these changes if you like.
Cheers, Aatish