|
|||
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 | ||
|
|||
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. |
|||
| ^ | Joined: 15 Apr 2012 Member: #278696 Location: Toronto, ON | ||
|
|||
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 | ||
|
|||
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 | ||
|
|||
| ^ | Joined: 16 Aug 2004 Member: #37236 Location: Vienna, Austria | ||
|
|||
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...! |
|||
| ^ | Joined: 22 Jan 2013 Member: #297032 | ||
|
|||
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 | ||
|
|||
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 |
| KVR Forum Index » DSP and Plug-in Development | All times are GMT - 8 Hours |
|
Printable version |
Disclaimer: All communications made available as part of this forum and any opinions, advice, statements, views or other information expressed in this forum are solely provided by, and the responsibility of, the person posting such communication and not of kvraudio.com (unless kvraudio.com is specifically identified as the author of the communication).
Powered by phpBB © phpBB Group















