passing file 'open' to poly instance/abstraction

Feb 8, 2010 at 7:17pm

passing file 'open' to poly instance/abstraction

I’m using a menu to randomly pass file names to a poly~ object that should take the command to play the file using sfplay~. The menu comes out the middle inlet into ‘prepend open’ then into an inlet on the abstraction ‘play’ for poly. When i observe using a message box the message is generated perfectly out of prepend but once passed into the abstraction it is lost. I placed the message box directly on the inlet to check what the incoming message was and nothing.

The max window just says ‘bad arguments for message ‘open”

Anyone got any ideas?

Feb 8, 2010 at 7:28pm

The “open” message already has a function when sent to the [poly~] object, it opens the specified instance of the patch. Try [prepending] a non-reserved word then [route]-ing it inside the [poly~]. Or use a different word and then [substitute] it.


Feb 8, 2010 at 7:34pm

nice one cheers – I’ve placed ‘prepend open’ within my abstraction and now works fine.



You must be logged in to reply to this topic.