Hi all,
I'm having some issues with oscformat and slashes ( / ). Many programs out there use formats such as "/parameter/bla 1", but both oscformat and oscparse don't really cope that well with them.
For oscformat:
- it's not possible to send a string starting with a slash, the message "oscformat: no method for '/aa' " appears.
- A hack can be done by sending a message [set /aa, bang( ...
- ... but this doesn't work if the message to send is /aa 1, as oscparse will convert it to /aa/1
- defining an object as [oscformat /aa] seems to work, but it will mean that another oscformat object has to be defined for each single string being sent: /aa, /aa/a, /aa/b, ...
For oscparse:
- when it receives a message with slashes in it, it removes the slashes automatically. Which is kind of acceptable, if it's going to be connected with a normal route. But not that much if the message is going to be worked on, and resent.
Or is there any other way of doing this? The documentation doesn't present anything else. It took some time of screaming at the computer until I compared the results with mrpeach's objects.
Best,
Joao