asUDP :  schmittMachine support schmittMachine Support Home
Questions related to the asUDP Xtra 
asUDP as OSC, float
Posted by: keezpips ()
Date: September 07, 2008 08:53AM

Great XTRA, quite happy with it.
Trying to use it as an OSC receiver, works so far.

Now I am trying to receive floating point values, and this is quite difficult,
as the bytes come out pretty 'raw'
I'm used to use 'readfloat' with the BinaryIO Xtra etc., which automatically read the 4 (or 8) bytes and converts them.

I guess I have to do all kinds of bit operations from lingo.

Is there any trick to do this easy with the bytes xtra or any other of your xtras ?

Greetings,
Keez, pipslab



Edited 1 time(s). Last edit at 09/07/2008 08:54AM by keezpips.

Options: ReplyQuote
Re: asUDP as OSC, float
Posted by: antoine schmitt ()
Date: September 09, 2008 10:24AM

Hello,
well your message decided me to release my code to decode OSC in lingo. I had this code around for some time and had not yet ported it to the 'bytes' datatype. This is done now, and I have included the code, as a fully functional and free demo, in the asUDPXtra3_1 zip : please redownload the zip and look for the OSCDecodeDemo.dir. It decodes bundles, messages, time, strings, ints, floats and doubles.
Enjoy !

Options: ReplyQuote
Re: asUDP as OSC, float
Posted by: keezpips ()
Date: September 09, 2008 03:04PM

This is so great

thanks so much..
The Mantissas, signs and exponents really started to puzzle me..

Greetings, and respect,

Keez

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.