I'm creating an installation with multiple channels. I'm using PD as an audioplayers and have an external program which is supposed to control it. I'm using mrpeach's osc implementation to do this. I'm using the [readsf~] object to play the wav file. I want the osc message to send the filename to the pd patch and have it play it immediately. (very small files, SSD drive so no problem there)
Right now I'm doing the following test: Send a message with address "/Avatar/SPIN/Model/1" and value "wdz6.wav" from Unity
(Looks like this: OSCHandler.Instance.SendMessageToClient ("pd", "/Avatar/SPIN/Model/1", "wdz6.wav"); )
I've made some routeOSC logic to test this, when printing it or just triggering the same filename it works perfectly fine. But for some reason, when I try to put it through a messagebox like [open $1, 1] it gives me an error: $1 out of range
Here's a screenshot: http://i.imgur.com/NB061zR.png
So I'm guessing $1 is not something you can use with routeOSC output...? How can I manipulate that string value? (or am I just completely misunderstanding the problem here?) When I connect the output to a [print] object it behaves as expexted.
Most tutorials I'm finding focus on sending packets or lists of numerical data so I'm not sure how to place the variable into a message like I want. Any help is appreciated. Thanks!