Forum

You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Trouble receiving float arguments

No Tags
UserPost

12:45 am
January 18, 2012


benhirashima

New Member

posts 2

hi all. i'm playing around with the bespoke osc library in my C# app. i'm sending data to it from a smartphone app called TouchOSC. touchosc sends mostly float values in the osc messages. the values range from 0 to 1. when i view the incoming data in pd-extended, i see the proper values between 0 and 1. however, when i receive the data in my app, i'm getting values that range wildly from roughly -4 to 4. i tried a different osc library called osc.net, and i do get the proper values from that library. however, i like bespoke better, and would like to get it working. i suspect i'm just reading the float values the wrong way. i looked at the sample apps, and am reading the data the same way. sorry, i don't have my code to post right now, but i can post it tomorrow. does this sound like a common problem? what is the proper way to read a float value from an osc message? thanks.

9:04 am
January 18, 2012


Paul

Admin

posts 49

Hello Ben,

I suspect that the TouchOSC library might be sending data in the reverse byte order (endianess) from the Bespoke OSC Library. This is easy to modify, just set the static OscPacket.LittleEndianByteOrder property from true to false.

Shout if that doesn't address the issue.

Paul

6:14 pm
January 18, 2012


benhirashima

New Member

posts 2

yep, that was it. thanks so much!

No Tags

About the Bespoke Software forum



No Comment

Comments are closed.