hi, i think it's because the first item in the message is a single string: "/mrmr/accelerometerZ/10/iPhone-de-Miguel-Negrao" wheras the responder is set to respond to the string: "/mrmr" you would idealy want all the elements in the first string to be seperate elements in an array or something similar, so you can do some if or case operations on it. but alas they are not! i made an extension to OSCresponder recently to deal with this situation, i'm attaching the file, see if it helps you? (if you set the response to "/mrmr" it should respond to any string with this in, and split the following elements up - although beware that any numbers in the string will still be strings after the split - if you know that an element in a certain position is a number then you can do something like "10".asInt i believe) also my extension allows to set the responder to "/anything", and then any message will be responded to, which may also be useful (it's slightly nicer than setting thisProcess.recvOSCfunc directly) |
Attachment:
C2_OSCresponderExtensions.sc
Description: Binary data
On 25 Dec 2009, at 14:28, Miguel Negrao wrote: Having a bit of difficulty with an iphone 3gs, mrmr and sc. I’ve set the port to 57120 in the iphone. If I do |