comma string from osc

Oct 31, 2010 at 2:40pm

comma string from osc

hello!
We are currently working on a project where we need to pass text over the net and then print it on the screen. So far everything is working fine EXCEPT one small detail: every time we try to get a comma on the system it is always taken as a comma message to the max objects. As a consequence when the value arrives there is no print of it.
Herewith the three different approaches we are currently trying:
fromsymbol, tosymbol and itoa,
No success so far. Herewith a patch of the procedure we are using. From the text editor in max it goes into a matrix and then printed on the window.
Another important information: the characters are coming from supercollider where the method .asString sends it over the net as an osc message.

– Pasted Max Patch, click to expand. –

Any pointer would be…lovely!!

thanks

-emmanuel

#53025
Oct 31, 2010 at 6:20pm

Have you tried adding in the escaping slash to the original string? Something like [regexp , @substitute \,] should work (notice the extra-extra slashes to escape everything).

lh

#190726
Oct 31, 2010 at 6:48pm

Hey Luke:
thanks for the answer, you mean something like this?

– Pasted Max Patch, click to expand. –

is that the correct way?, any optimization suggested?

I will test tomorrow with the osc messages coming from sc(we have a network) and see if it works properly with our set.

I will post the results

-emmanuel

#190727
Oct 31, 2010 at 7:35pm

Something like that should work, give it a try and let me know how you get on. You probably want to hook the fourth outlet of [regexp] to the same places as the first. This way the string will get sent through even if it doesn’t contain any commas.

lh

#190728
Nov 1, 2010 at 6:00pm

Hey Luke, the patch works perfectly!
thanks again

-emmanuel

#190729

You must be logged in to reply to this topic.