Making new objects : varname in a new buffer~ object ? (with [thispatcher] )

tep's icon

am stuck

trying to dynamically create buffer~ objects with [thispatcher], give it a random (urn) scripting name (for being unique) and be able to fill it with a sound automatically.

Max Patch
Copy patch and select New From Clipboard in Max.

But how to write it ? the argument "@varname something" simply adds in the object, but doesn't work ... Grrrrr

tep's icon

Ok, things are evolving

I understood how to give a unique varname to the object i'm making, with "newobject newobj" instead of "newobject buffer~"

fine

Max Patch
Copy patch and select New From Clipboard in Max.

But then, as i would like to fill the buffer with a sample, i'm trying all type of syntax. None of them work. Each time

Max Patch
Copy patch and select New From Clipboard in Max.

... or other method, not more successful

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I have done the below before and seems to work. Sorry for the messy patch, I ripped it out of a large project... you will need to clean it up a bit.

Emmanuel Jourdan's icon

You might just want to have a look at polybuffer~