vst instrument loaded at opening of patch

Hans Mittendorf's icon

Is there a way to load a vst instrument when loading the patch? Maybe a script?

Ben Bracken's icon

just specify it in the vst~ object, like [vst~ myawesomevst.vst].

-Ben

Hans Mittendorf's icon

Thank you, this works well. BTW when there is a VST instrument named xxx 5.vst with a space, for those who follow this post you can rename the vst to get the name in one word because the vst object does not read names with a space. Since one of my instruments does not want to be renamed, you can put brackets like "xxx 5.vst" and it will work.
Thanks Ben

seejayjames's icon

The same goes for filenames everywhere, I believe. you can use [tosymbol] or put things in quotes. With a space, the object (sfplay~, buffer~, vst~, coll, whatever) thinks the next term is the next argument, just like any other programming language does. Guess this is why nerds everywhere love_the_underscore... it's just... safer :)

jazzisfaction's icon

cool....just had the same problem. of course it is like with filenames - but I forgot it cause all my Plug Ins' names were just 1 word except: PSP 608 MultiDelay. the vst~ didn't eat that and I wondered why. Now I know.
You just use "PSP 608 MultiDelay".

Thanx guys. Sometimes it's so easy but u can't see it ;-)

Felon's icon

Hi there,

The method of writing the name in the object box doesn't work here ! It works only if I do it manually, but not when the patch is loaded on itself. I have to re-type the name on the vst object.

I'm using the DMXIS vst, for lightning purposes.

Thanks !

Felix

Source Audio's icon

That's known problem.
Loadbang a message with {plug "my vst plugin.vst"} and it will work.
If You want to know when plugin finished loading, ask it for something,
like loadbang -> {plug "my vst plugin.vst", get -7} (is it a synth ?)
Insert at parameter outlet {route -7}. That will output 0 or 1 depending if plug is a synth or not.
But whatever it outputs, we know that it did load...

Felon's icon

Thanks ! Indeed, the plugin loaded and I didn't have to re-type the name on the object box.

Now, I don't know if the thing would work without it's plugin widow opened...

Felix