Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
[VST 2.4] Programs?
domkirke
KVRer
- profile
- pm
PostPosted: Tue Jan 22, 2013 6:17 am reply with quote
Hello everybody,

I have to develop a VST Patch with the VST SDK 2.4, and I just can't understand how the program/presets system is working... I have been looking for a documentation and I didn't managed to find one, and I have try to copy the program-related part of the [ https://github.com/catshirt/vst-2.4-xcode-examples/tree/master/adelay ] (ADelay example ) and it's worse, the VST hosts don't detect my .dll as a VST patch anymore. Can you help me? Thank you very much!

AUTO-ADMIN: Non-MP3 links have been disabled in this post automatically. Once the member reaches 5 posts the links will become clickable.

^ Joined: 22 Jan 2013  Member: #297032  
LemonLime
KVRist
- profile
- pm
- e-mail
PostPosted: Tue Jan 22, 2013 8:22 am reply with quote
Here is the code and some explanation of Steinberg's VST examples, which includes programs:
http://ygrabit.steinberg.de/~ygrabit/public_html/vstgui/V2.2 /doc/2.0/examples.html
It's probably the same project that you're referring to, but this includes some commentary that might be useful.

To do presets you would basically declare an array of the number of presets you want of your program struct/class:

ProgramStruct *plugPresets = new ProgramStruct[numPresets];


Then in your plug-in's constructor you would run through your array of presets setting their values. The rest of the functionality is pretty much the same as in the examples (setProgram, getProgram, etc.).

And just on a side note, the link you referenced above looks like the Xcode project yet you mention that the .dll isn't recognized. You'll need the Visual Studio project for a .dll. Maybe it was just a typo on your part, but thought I'd mention it just in case. Smile
^ Joined: 15 Apr 2012  Member: #278696  Location: Toronto, ON
domkirke
KVRer
- profile
- pm
PostPosted: Tue Jan 22, 2013 3:10 pm reply with quote
Thank you very much for your answer.
I think I have understood the concept, I have copied all the program-relative parts of the example into my code (of course adapting it), but I don't know why the plugin makes the host crash (VSTScanner, VSTHost) and some host (Nuendo) doesn't even recognize the plugin... What could be wrong? I really don't understand because all is supposed to work...
(detail : I'm on CodeBlocks)
^ Joined: 22 Jan 2013  Member: #297032  
LemonLime
KVRist
- profile
- pm
- e-mail
PostPosted: Tue Jan 22, 2013 8:25 pm reply with quote
Most of the big host DAWs verify a plug-in before it will load it, so if it's crashing in VSTHost it's a safe bet that Nuendo has checked it but it fails validation so it won't load it.

It's impossible to say why with no code to go by, but one starting point is just to build the VST examples by Steinberg to make sure that's working. Then you can compare/contrast build settings and your code to narrow down why yours is crashing.
^ Joined: 15 Apr 2012  Member: #278696  Location: Toronto, ON
arakula
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Tue Jan 22, 2013 10:07 pm reply with quote
What exactly does "crashing in VSTHost" mean?
----
"Until you spread your wings, you'll have no idea how far you can walk."
^ Joined: 16 Aug 2004  Member: #37236  Location: Vienna, Austria
domkirke
KVRer
- profile
- pm
PostPosted: Wed Jan 23, 2013 1:32 am reply with quote
Thank you both!
When I'm importing my VST in VSTHost (by the New Plugin menu), the program is freezing and I have to open the task manager to close it... Like VSTScanner.
Ok, I really don't know how I will fix it but thank you anyway...! Smile
^ Joined: 22 Jan 2013  Member: #297032  
domkirke
KVRer
- profile
- pm
PostPosted: Wed Jan 23, 2013 12:13 pm reply with quote
And if you have any advice on how to debug a .dll with CodeBlocks please help me, because I have been looking for it for two hours and I can't get how to do :s
^ Joined: 22 Jan 2013  Member: #297032  
LemonLime
KVRist
- profile
- pm
- e-mail
PostPosted: Thu Jan 24, 2013 6:09 am reply with quote
domkirke wrote:
And if you have any advice on how to debug a .dll with CodeBlocks please help me, because I have been looking for it for two hours and I can't get how to do :s

I don't use CodeBlocks, so I'm afraid I can't help you there.
^ Joined: 15 Apr 2012  Member: #278696  Location: Toronto, ON
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012