PDA

View Full Version : Convert OSC data (e.g. float to string)



filmriss
04-30-2011, 09:35 AM
Hello everyone,

I was searching the forum before, but could not find any post. I was wondering if there is a way to convert or map incoming float values (OSC) to strings.

Example:

/any/in 0.5f --> /any/out 'half'
/any/in 0.0f --> /any/out 'zero'

and also vice versa for feedback?

any ideas? :confused:

camille
05-01-2011, 01:13 AM
Hi filmriss,

I'm afraid I'm sorry, something like this would only work with integers.
I guess I could extend the 'Demux' feature to handle floating numbers more properly but this is more or less one of the things I'd like to be able to do in the current rewrite of the application.

You can convert a OSC number to a string though, but still this is pretty basic as it will merely output the number value and not a formatted output.

Cheers,
Cam

filmriss
05-01-2011, 11:24 AM
Hi Cam,

I see, thanks for clarification!