Forums > MaxMSP

passing file 'open' to poly instance/abstraction


Feb 08 2010 | 7:17 pm

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

Feb 08 2010 | 7:28 pm

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

Feb 08 2010 | 7:34 pm

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

Cheers.
Josh

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP