Forums > Max For Live

Using — AND argument for named objects

Apr 07 2012 | 7:42 am

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 07 2012 | 8:53 am

is this what you want?

-- Pasted Max Patch, click to expand. --

Apr 07 2012 | 10:14 am

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 08 2012 | 8:43 am

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

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

Forums > Max For Live