Spektar is capable of generating VST Effect source code from a design. Here is a brief guide on how to do this.

Requirements

In terms of design requirements for VST Effect export, there is essentially a requirement that your design must have two inputs and two outputs. Additionally, the design can have any number of controls.

Once your design is exported to source, you will need to install a few things to build. At a minimum this will be VST3 SDK available from Steinberg, cmake and a toolchain (e.g. Visual Studio on Windows). This is a typical set of requirements for building VST plugins so if you follow VST3 SDK instructions for setup, that will also work for plugin source generated by Spektar.

It is usually a good idea to make sure that you can build examples that are included with VST3 SDK first. Once that works, building code generated by Spektar will be a breeze.

Setup

A good starting point is placing Audio Source and Audio Sink components. These are bench components and can therefore represent the boundary / edge of your design. You can think of these as the input signal to your effect (Audio Source component) and as the output from your effect (Audio Sink component).

Design and processing

This is where you create your effect. Drag and drop components, connect them and test the result. A good example is available as Reverb.dgml in the projects / examples folder.

Export

Once you are happy with the results in Spektar, hit the export button and follow instructions in export guide. Note the VST specific section there and read it as there may be a few gothas you can avoid.

Building your plugin

After the export, look for Readme.txt file in your export folder. This provides basic instructions on how to build. The cmake build system chosen by Steinberg is not pretty or particularly helpful, but source generated by Spektar will build of the box if your initial setup was correct.

VST GUI

Spektar export includes VST GUI4 designer code. Oddly, the VSTGUI4 designer is a runtime thing. It gets compiled into your plugin if you specify -DSMTG_ADD_VSTGUI=1 when running cmake. When you load the plugin into the host (e.g. in Steinberg’s VstPluginTestHost), the VST GUI Editor shows up. Please refer to VSTGUI4 docs on how to use the editor. It’s a bit clunky but with a bit of trial and error it should work.

Tips

  1. Source code templates for VST effects and VST instruments are in your Spektar home folder , e.g. Documents/Spektar/templates. You won’t need to but you could modify these to adapt plugin functionality and behaviours. If you really must modify these, make a backup copy first so you can revert easily.

Version: 1.0.13-SNAPSHOT. Last Published: 2023-11-12.