Forums > MaxMSP

Convert string to number


Jan 22 2010 | 3:44 pm

I’m a newbie. Receiving data via OSC, I can see it stream into MAX as a Message, but I cannot get this same data to act as a value and drive effects such as crossfades between video. Any help would be appreciated.

Jan 22 2010 | 9:36 pm

If you’re getting numbers in, and Max is treating them as symbols, you could look to [fromsymbol]. See if the numbers coming out of [fromsymbol] go into a number box without an error, and if so, you’re all set.

Jan 23 2010 | 2:37 am
Feb 05 2010 | 9:22 pm

We used the following:
udpreceive -> message -> fromsymbol -> flonum
also udpreceive -> fromsymbol -> flonum

We are not seeing a stream of floating point values in the flonum variable.

What are we doing wrong?

Feb 05 2010 | 9:26 pm

You’d need to provide more info about the exact contents of the messages you are receiving, as well as any error messages printed to the Max window.

Feb 05 2010 | 10:19 pm

We are using EYECON to send data to MAX which we receive with udpreceive. we think this data is an osc message.

We see some floating numbers in the object message which we connected to the output of udpreceive. Does the message object just send out whatever data type it gets (osc)? Ideas on handling this? Ideas of things to try?

When we connect the output of udpreceive to flonum we get this error message: flonum doesn’t understand ""

That’s why we tried to convert using fromsymbol

Feb 05 2010 | 11:02 pm

I found the answer!

Whatever was data was coming from updreceive had to be converted tosymbol and then back fromsymbol before it could be read as a value!

It works now . . .

Jan 05 2015 | 1:52 am

@BYRNIELIVES Thanks for solving my tough problem this time! I stuck on this question for a whole day.

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

Forums > MaxMSP