remove /

Jan 21, 2011 at 12:30am

remove /

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”.

#54505
Jan 21, 2011 at 12:48am

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

#196304
Jan 21, 2011 at 12:54am

Thank you!

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

-jbj

#196305
Jan 21, 2011 at 12:55am

I am starting the day well!

#196306

You must be logged in to reply to this topic.