Forums > MaxMSP

Making a Buffer~ unique to a patcher

December 7, 2009 | 10:23 pm

Is there a way to make a buffer~ object only accessible from the patcher its in and its children?
so if i had a patcher loaded into a p object, and it contained a buffer, the parent cannot access the buffer but the patcher it was created in can


December 7, 2009 | 10:52 pm

Use the magic #0 in the buffer name (like buffer~ #0_toto). A unique random number will be generated (like 1074_toto) in place of the pound 0.


February 25, 2010 | 7:48 am

thank you for this advice. I am now facing a problem with this. I am making an MSP java that needs to access a buffer in the patcher that has been named this way. Is this achievable?



EMV
February 25, 2010 | 9:50 am

Let the patcher output the unique name by connecting [loadbang]-[message #0_toto]-[outlet].
That way something outside the patcher receives the name and can access the buffer.


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