Changeable Argument in gen~

yota's icon

Hello,

I'm making a bpatcher abstraction which I will use multiple instances of it.

The abstraction has a buffer~ object which has its own independence from the other instances as its name contains a changeable argument in its name. This changeable argument is set to the first argument of the bpatcher.

Now, I have a buffer operator in gen~ in the bpatcher abstraction and I want it to recognize the buffer~ outside gen~.

The challenge is that gen~ can have only one argument (the name of the referred gen~ file), and "args" is not valid unlike for poly~ or pfft.

I attached a simplified example to this message -- obviously it's not working well as gen~ has no argument.

Does anyone have a good idea?

Many thanks in advance!

4142.test.zip
zip
pid's icon

sadly, Gen cannot handle the unique id arguments.

for loading unique buffers simply send a message to do so. example attached.

(this is all in the gen help file by the way)

good luck.

4143.testhelp.zip
zip
yota's icon

This solution is perfect.
Thank you!

Graham Wakefield's icon

Yes, this is the recommended way to do it. There are no plans to support #1, #0 etc. in Gen.