Using — AND argument for named objects

Apr 7, 2012 at 7:42am

Using — AND argument for named objects

Let´s say I have 4 buffer objects inside my m4l patch, named —1buffer, —2buffer, —3buffer and —4buffer. When I play from one of those those buffers from inside a poly~ object, I would like to choose between the buffers, using an argument.
For example, all “wave~ —#1buffer” objects inside a “poly~ foo args 1″ object should use the “—1buffer”, “poly~ foo args 2″ => “—2buffer” ect. Is there any way to do this?

#62821
Apr 7, 2012 at 8:53am

is this what you want?

– Pasted Max Patch, click to expand. –
#226778
Apr 7, 2012 at 10:14am

Thank you for your answer, but I need a solution, where the “—” at the beginning is replaced with a unique number for every instance of a device, how it is explained here (at the end):

http://cycling74.com/docs/max6/dynamic/c74_docs.html#dollar_sign_and_pound_sign

The problem is, that there seems to be no way to query this unique number, so that I could construct a message for the wave~ object. Does anyone have an idea?

#226779
Apr 8, 2012 at 8:43am

Nevermind, I forgot to reload the device in live. Your solution works for me Terry, thanks a lot!

#226780

You must be logged in to reply to this topic.