Forums > MaxMSP

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



tep
June 4, 2011 | 12:03 pm

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.

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

— Pasted Max Patch, click to expand. —

tep
June 4, 2011 | 1:48 pm

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

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

— Pasted Max Patch, click to expand. —

… or other method, not more successful

— Pasted Max Patch, click to expand. —

MIB
June 4, 2011 | 9:55 pm

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.

— Pasted Max Patch, click to expand. —
June 9, 2011 | 1:58 pm

You might just want to have a look at polybuffer~

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

Forums > MaxMSP