how to create unique scripting names, inside multiple bpatchers

Sep 11, 2012 at 3:11am

how to create unique scripting names, inside multiple bpatchers

I made 8 GUI’s using bpatchers, to control the different voices of a drum machine. The problem is when I try to save (in the main patch) with pattrstorage, the scripting names in each bpatcher are exactly the same. I thought I could solve this using args, for example “#1fader” as a scripting name, but that doesn’t work. Any other ideas greatly appreciated.

#64311
Sep 11, 2012 at 7:32am

#0

Attachments:
  1. bpatcher.zip
#231880
Sep 11, 2012 at 8:17am

I don’t have this problem with identical bpatchers (12 of them) and autopattr inside each

#231881
Sep 11, 2012 at 8:49am

Thank tobiasros! The #0 works great. I changed my scripting names like your example, to “#0slider”, and unique numbers appeared before each name in the pattrstorage. Should be a big time saver.

Ploki, sorry for the vague question, but basically I need each bpatcher to store different values. Since one bpatcher will be for the kick drum, one for the snare drum…etc

#231882
Sep 11, 2012 at 9:18am

One problem though… because unique numbers are generated each time the patch is opened, pattrstorage won’t save correctly.

#231883
Sep 11, 2012 at 9:55am

yeah, then you don’t can use #0;

but have a look here: just give the bpatcher different scripting names…

#231884
Sep 11, 2012 at 10:39pm

You are right, and so was Ploki. I think I misdiagnosed the problem, my bad. Instead the issue was with setting the args in the inspector, which I assumed could be used to send poly~ a message like “target #1, $1 $2″. When I moved the target message outside the bpatcher, it worked fine. And maybe that target message with the args could still work, but this method works for now.

Even though I posted the wrong question, you guys still helped me figure it out, which is super cool…thanks again.

#231885

You must be logged in to reply to this topic.