If you search the oscp5 source for “double”, there are many hits throughout the code for sending and receiving doubles and interpreting double tags. It appears that the oscp5 library for Processing has full double support (untested).
For example:
void mousePressed() {
/* send an OSC message to NetAddress addr */
osc.send( receiver , "/test" , random( 255 ) , random( 255 ) , random( 255 ) );
/* breakdown of parameters
* 1) receiver's NetAddress
* 2) the address pattern of the OSC-Message
* 3-5) the arguments of the OSC-Message, here we add 3 arguments each of type
* float which will result in a 3 characters long typetag fff
*
* arguments here can be of type int, float, double, String, boolean, blob (byte-array)
* see OSC specifications 1.0 http://opensoundcontrol.org/spec-1_0
*/
}
/* oscEvent(OscMessage) will wait for incoming OSC messages. */
void oscEvent( OscMessage m ) {
/* check if an incoming OSC message matches a particular address pattern */
if( m.getAddress().equals( "/test") ) {
1 Like