Page 1 of 1

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

Posted: Wed Mar 14, 2018 2:09 pm
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.

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

Posted: Wed Mar 14, 2018 8:03 pm
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.

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

Posted: Wed Mar 14, 2018 11:18 pm
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. ;)

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

Posted: Thu Mar 15, 2018 11:03 am
by j_e_f_f_g
Does it need to be VST, or can it be LV2?

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

Posted: Thu Mar 15, 2018 5:41 pm
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?

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

Posted: Thu Mar 15, 2018 6:21 pm
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 ;)

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

Posted: Thu Mar 15, 2018 7:31 pm
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.