Forums > MaxMSP

Number to String Problem??

Apr 01 2009 | 2:27 pm

Hi there i’ve made a very small patch in MAX using the udpreceive option. With this I receive one value from eyesweb via OSC. When I want to connect the outcome of the udpreceive field to a number field it says "Dont understand """ in the Max window? What is the problem. I think the number is not seen as a number but as a string but how can I convert this????
Thanks in Advance

Apr 01 2009 | 4:53 pm

It looks like the "" is an empty string rather than a number, which is a bit odd. Hook in a [print] to see the exact message you are getting. Two useful objects you might also want to look at are [fromsymbol] and [tosymbol].


Apr 02 2009 | 4:01 pm

well it’s not an empty string if i use the print option it show numbers but when I connect it to the number-field it gives an error. see images

Apr 02 2009 | 4:49 pm



Apr 03 2009 | 1:21 pm

Consider that, if udpreceive is sending out an empty string as part the UDP package, you’re not going to see it in the Max window, are you? Even single blank characters are easy to overlook (particularly in your screen shot).

I’d suggest inserting a [route i] object between udpreceive and your numbox.

For better analysis of what’s going on, you might want to pass udprecieve’s output through spell or atoi. The fromsymbol suggestion may also be helpful.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP