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?
Cheers,
Josh

#48335
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.

lh

#173802
Feb 8, 2010 at 7:34pm

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

Cheers.
Josh

#173803

You must be logged in to reply to this topic.