We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi again i´m working on a project that consists of three sketches each one is using a different kind of data from three arrays that all represent the same thing but in a different form (Pic, word, rect). The sketches would run on the same computer at the same time. As i understand it sending and reading it from a serialport doesn´t work.
is there a lib or something smart to do it with?
Answers
Have a look at the OSC library. You can install it from the processing's library manager. Check the provided examples or previous relevant posts:
https://forum.processing.org/two/search?Search=oscP5
Now, if you run all three sketches from a single sketch, then you could access global data from what I have seen in previous posts.
Kf
thank you but all i seem to find is stuff about making sliders etc and same sort of interface? sorry
i am really lost with the lib. could i just use something like this https://github.com/alexandrainst/processing_websockets/blob/master/README.md and have one sketch just writing the variabel to the server and each one receiving the value?
@EtJA -- It sounds like you might be confusing the ControlP5 GUI library with what was recommended, the OSC P5 library for signal passing, which uses the Open Sound Control protocol. However OSC messages don't have to be sound-related or UI related -- they can be any variable.
@jeremydouglass thank you that helped my confusion.
but i´m still not sure how to implement that in the sketches i check most of the examples. if i break the send and receive up into two it doesn´t work very well
I believe this approach can be helpful: https://forum.processing.org/two/search?Search=spacefromtop
You can look at other relevant posts: https://forum.processing.org/two/search?Page=p2&Search=oscP5
You can also provide your code so people can see your approach and provide effective feedback.
Kf
some basic idea is got two sketches both select a word at random from a list of words but both should select position within the list at the same time. i need both to share value for the int erstes.
number one:
number two
Here is a basic implementation. I modified the sketch a bit to adapt it to my text4.txt input. Kf
Sketch transmitting:
Sketch receiving: