Forums > MaxMSP

remove /

January 21, 2011 | 12:30 am

Hi there!

I’m working with some OSC-messages that look like this: /1/fader/1 "value".

I route away the first "/1" and the "/fader", then I unpack the "/1" and the "value".

The problem is the last "/1" that I want to be just "1".

I’ve tried to use an atoi to solve it, but when the fader number (/1, /2 … /9, /10, /11) get’s to 10 (or above) I’m f*d.

Ideas?

-jbj

– Pasted Max Patch, click to expand. –

btw, using external "OSC-route".


January 21, 2011 | 12:48 am

Either use more instances of [OSC-route] with arguments for each of the expected values. Or destroy the slash with [regexp (/) @substitute %0].


January 21, 2011 | 12:54 am

Thank you!

Been on this for hours, you made my day :)

-jbj


January 21, 2011 | 12:55 am

I am starting the day well!


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