buffers name conflicting in instatiations of same device

Tiago Morgado's icon

hi guys.. I created a maxforlive device that uses a mechanism close to the sineqube sapling 1.1 MaxMSP standalone.. so, now I would like to add the capability to the patch to add simoultaneous intances to a live session.. but there is one small problem. In MaxMSP, when you create a buffer~ If you have more than one instance of buffer~ object with the same name, they will obviously conflict and use the same buffer.. but in maxforlive, I thought that each device was independent but it's not.. so, my idea was to make something like buffer~ #1 so that the #1 assumes the numer of the instantation of that device.. how do I make it possible?

thanks advance
tiago morgado

Dominic Ward's icon

|buffer~ devicename---|

Tiago Morgado's icon

I am currently designing a mechanism for auto-generating a name for a buffer so that I can instatiate the same patch as many times as I need..
I give you the source code bellow.. and I need to know how do I take out the spaces generated by the pack object, and also, how do I place " " between the name that is randomly generated..

thanks in advance folks

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

greets from portugal
tiago morgado

(edited by admin - please use copy compressed)

1158.set_buffer_name_automatically.maxpat
Max Patch
Dominic Ward's icon

Perhaps i misinterpreted your issue? I thought your problem was running multiple devices and maintain the buffer name without affecting each buffers content....

Tiago Morgado's icon

there's no problem.. thanks anyway.. I already re-formulated the post and someone else who gave me a proper answer..

greets ;)
tiago morgado

Dominic Ward's icon

Just checked your patch...from your original post i thought you wanted to do it for M4L devices since a random name would not be required, hence my post. Glad you got it sorted though.

Dom