set coll name?

Nov 22, 2010 at 2:45am

set coll name?

I know I can refer an unnamed coll to a named coll. But is there a way to actually “name” a coll dynamically (something like “set myNewName”)?

My situation is this: I have an abstraction that collects a bunch of data into a coll. I then want to display it with jit.cellblock. No problem (refer again). I want to be able to have several instances of those abstractions running at any given time and therefor would need different coll names in each.
I know that I could do [coll #0_reference 1], but then I need to store and send out the unique name each time. I would much rather use patcherargs to let the user choose the coll name.

Hope I am making sense here… any suggestions?

#53471
Nov 23, 2010 at 12:46am

Hi,

I came up with a potential solution using js. I am very new to js, so it may not be the best way to do it, but it seems to work.

Hopefully it helps,
Eric

Attachments:
  1. collnamer.zip
#192349
Nov 23, 2010 at 2:15am

Sorry, did you mean that you wanted to have data remain in the coll when being renamed? If so, then my solution is not much of a solution…

#192350

You must be logged in to reply to this topic.