does a tutorial exist on how to write a MIDI VST plugin?

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
tux99
Established Member
Posts: 346
Joined: Fri Sep 28, 2012 10:42 am
Contact:

does a tutorial exist on how to write a MIDI VST plugin?

Post by tux99 »

I have been searching everywhere but I can't find a tutorial or some documentation that explains how the VST API is used to write pure MIDI plugins (such as synth editors). All I can find is examples and tutorials on how to write sound plugins.
Purely looking at source code of existing MIDI plugins or of the VST SDK is no help to me, my skills are not that advanced to figure it out purely by looking at source code without any tutorial or explanation on how the API works.
tux99
Established Member
Posts: 346
Joined: Fri Sep 28, 2012 10:42 am
Contact:

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by tux99 »

Thanks falkTX, that's a starting point for me, but if anybody knows of proper documentation or a tutorial and could post a link to it, it would be even better.
tux99
Established Member
Posts: 346
Joined: Fri Sep 28, 2012 10:42 am
Contact:

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by tux99 »

falkTX wrote:I know pizmidi are a collection of vst midi plugins, so checking out its source might serve as documentation.
Thanks will check it out, but as I said, reading source code (unless it's full of comments) does not help me a lot at my skill-level.
Documentation for VST SDK has always been lackluster, it's not very detailed on what devs should do, which leads to plugins implementing the same API in sorta different ways...
Good to know that I'm not the only one struggling with the lack of documentation. ;)
j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 357 times

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by j_e_f_f_g »

Does it need to be VST, or can it be LV2?

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

tux99
Established Member
Posts: 346
Joined: Fri Sep 28, 2012 10:42 am
Contact:

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by tux99 »

It needs to be VST as it has to be multi-platform and work with all common DAWs.

Or does some kind of wrapper exist to use a LV2 in VST compatible DAWs?
User avatar
SpotlightKid
Established Member
Posts: 250
Joined: Sun Jul 02, 2017 1:24 pm
Has thanked: 48 times
Been thanked: 54 times

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by SpotlightKid »

tux99 wrote:It needs to be VST as it has to be multi-platform and work with all common DAWs.
Yes, for example Carla, by the present, illustrious falkTX.
tux99 wrote:Or does some kind of wrapper exist to use a LV2 in VST compatible DAWs?
There are also frameworks, which allow you to write the core processing code of a plugin once and export it in different plugin format. Not many of these support LV2, though, and MIDI support is often less developed than that for audio.

I'm not aware of such a framework, which supports all important plugin formats across all platforms, most are missing support for either LV2 or AU (and support for less important formats like RTAS is even rarer).

Again, falkTX has something on offer here: DPF supports LADSPA, DSSI, LV2 and VST, but I'm not sure how extensive MIDI support is. falkTX himself can probably can answer this better ;)
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: does a tutorial exist on how to write a MIDI VST plugin?

Post by Jack Winter »

tux99 wrote:It needs to be VST as it has to be multi-platform and work with all common DAWs.

Or does some kind of wrapper exist to use a LV2 in VST compatible DAWs?
Yes, https://github.com/x42/lv2vst/blob/master/README.md, but it doesn't support all features, so not all plugs work.

But as an example, most Harrison plugs work in Reaper.

That said with Steinberg supporting VST3 with a SDK for Linux, I'd imagine that VST3 could be important on Linux.
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
Post Reply