User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 425,982 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,640 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 523 | Replies: 3
Reply
Join Date: Aug 2006
Location: me::house
Posts: 908
Reputation: linux is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 23
linux's Avatar
linux linux is offline Offline
Posting Shark

VST programming in Visual Basic

  #1  
Jul 4th, 2008
Is it possible?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Posts: 2
Reputation: obiwanjacobi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
obiwanjacobi obiwanjacobi is offline Offline
Newbie Poster

Re: VST programming in Visual Basic

  #2  
Jul 25th, 2008
On windows, yes.

Take a look at VST.NET, an open source project that allows you to write VST plugins in any .NET language.

http://www.codeplex.com/vstnet

VST.NET provides a framework that simplifies and structures the VST interface allowing you to setup your plugin skeleton in no time.

It also comes with a couple of samples that demonstrate typicall plugin constructs. The delay sample is a working delay complete with parameters, programs and persistence. The Midi Note Mapper demonstrates how to do Midi In/Out and custom UI.

Grtx,
Marc Jacobi
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 908
Reputation: linux is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 23
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: VST programming in Visual Basic

  #3  
Jul 25th, 2008
That seems to be for C++ and C only. Where is the Visual Basic part?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote  
Join Date: Jul 2008
Posts: 2
Reputation: obiwanjacobi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
obiwanjacobi obiwanjacobi is offline Offline
Newbie Poster

Re: VST programming in Visual Basic

  #4  
Jul 26th, 2008
Originally Posted by linux View Post
That seems to be for C++ and C only. Where is the Visual Basic part?

The VB.NET part is where you write your plugin in. VST.NET Interop is a C++ mixed (both native and managed code in there) assembly. But the Core and Framework assemblies are C#. Your managed plugin assembly would be in VB.NET (or C#, or whatever).

The only time when you get into contact with the Interop assembly is when you rename it to the file name of your plugin. Your managed assembly that contains your plugin will have a .net extension (just before the .dll). So if your plugin is called "MySynth". You rename the Interop dll to MySynth.dll and your own plugin dll to MySynth.net.dll. This naming scheme is used for the loader to find and load your managed plugin assembly.

It's fairly easy to setup a a skeleton plugin in VB.NET (or any other .NET language).
You need a public class that implements the IVstPluginCommandStub interface that will be created by the Interop assembly. Derive this public class from the StdPluginCommandStub class that can be found in the Framework (Plugin namespace).
The public PluginCommandStub class you implement overrides a method to create the plugin root class instance. This is the object that implements IVstPlugin. From that point on you have to decide what VST feature you need or want to support. For each feature, the VST.NET Framework declares an interface that you can implement.

Check out the codeplex site home page, there are links there with additional information. Especially check out the VST Resources page, it links to a couple of blog posts I wrote to explain certain aspects further.

Do not hestate to drop questions you might have on the Discussion List on the codeplex site.
There everyone can benifit from the answers.

So, to recap. Yes VST.NET uses C/C++ but you dont need to touch that or even know how it works (although the source code is available) and the Core and Framework are written in C# but that is exposed as managed class, so there should be no problem consuming those in VB.NET.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 11:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC