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?

Apr 7, 2012 at 8:53am

is this what you want?

– Pasted Max Patch, click to expand. –
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):

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?

Apr 8, 2012 at 8:43am

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


You must be logged in to reply to this topic.