Hi guys,
Using OSCP5 my sketch is receiving a string with 5 values inside. I can visualize all the values through println as follows:
Your values are: 0;0.36944444444444446;0.52777777777777779;0.2388888888888889;0.4375
It sounds very stupid :( but I'm not capable of extracting separate values using stringValue("index"), the only stuff that works is the following code line for extracting the whole string.
Greetings from Spain,
I am trying to implement an sketch in which the displacement of particles will be made by a complex shape made by several points.
My idea is to define some vertex (i.e. 8) for creating a shape, that
will be in charge of push the particles. Then I will refresh the variables (points in the vertex) through other functions in order to dynamically change the shape.
Greetings from spain!
A stupid thing is making me mad :s. I am trying to read a couple of floats (pitch and roll axis of wiimote) from processing. For doing this I am using a sketch based on the example "oscP5oscArgument".
The big problem is that I can't "separate" the two values for using them in my sketch, so I receive this kind of message:
### received an osc message /wiimote with typetag ff. values: 0.51876163, 0.51876163 ### received an osc message /wiimote with typetag ff. values: 0.577121, 0.577121 ### received an osc message /wiimote with typetag ff. values: 0.51869893, 0.51869893 ### received an osc message /wiimote with typetag ff. values: 0.57724977, 0.57724977 in which first and second arguments are totally equal.
Any help is really appreciated :(
I am sending the osc message from OSCulator, pitch is routed to arg[0] and roll is routed to arg[1], and my code is:
/**
* oscP5oscArgument by andreas schlegel
* example shows how to parse incoming osc messages "by hand".
* it is recommended to take a look at oscP5plug for an alternative way to parse messages.