VST~ & coll snafu

Jun 7, 2012 at 10:08pm

VST~ & coll snafu

i could use a little help. i’m trying to get the stored program names of a vst out and stored into a coll. ideally, because the list will come out as symbols, i’d need to add an index as they get stored. then when i send a number to vst, i can get the stored name of that program. so i’m thinking [listfunnel] and [fromsymbol], but i’m having issues with how the list gets sent to print and how it actually imports into coll.

here’s where i’ve started, but there are issues . . . .

thanks!

drew

– Pasted Max Patch, click to expand. –
#50946
Jun 8, 2012 at 3:45pm

You don’t need listfunnel at all because the output of the vst~ object when you send it “pgmnames” is not a single list, it just gives you all the names one by one.

The store message doesn’t work like this with the coll object. In fact, you don’t need the store prefix.

If I want to store “program name 2″ in my coll and want it output when I send a 2, you need to send “2 program name 2″

so basically, all you need in front of your names to store them in the coll is a prepend int where the int is where the name should be stored, aka its “id” to get a different prepend for each name, you could use a counter that is banged just before or after each output.

Is this what you’re looking for?

– Pasted Max Patch, click to expand. –
#182731
Jun 8, 2012 at 7:20pm

this is great jbl, thanks! my basic troubleshooting tool of [print] kept giving me different results with everything i tried. but now i understand how it works, and how pilot error has tricked me once again. much obliged!

drew

#182732
Jun 8, 2012 at 9:56pm

I just found out that the first item in your coll should be associated with 1 and not 0, it’s easy to have it set that way by changing how the counter is reset from “reset on next count” to “reset immediately”.

#182733
Jun 9, 2012 at 10:34pm

I did pick up on that when i started to use the patch. And once i got everything working, i shifted gears and went with a umenu.
It’s all about the journey . . . .

thanks again!

drew

#182734
Jun 9, 2012 at 11:50pm

Oh yes! populating a umenu is pretty much the same type of message and then you can use it to send which preset you want to load to the vst~ object. Neat.

#182735

You must be logged in to reply to this topic.