Generate VST3.x Plugin

Refer below topics to generate the VST3.x plugin with an external audio object.

  1. Steps to add source code for external audio objects.
  2. Steps to generate the VST3 plugin.

Steps to add source code for external audio objects

Steps to add source code for external audio objects

  1. Place the source code for the new audio object under external src.
  2. Place the header file under the external.
  3. The audio object header file name should be similar to the audio object class name. For example, if the audio object name is CTemplate, the header file name should be Template.h
  4. Update externalincAudioIds.h with the pre-processor macro definition for the new audio object.

      AudioIds.h
  5. The name of the pre-processor definition should be OBJ_“header file name“.
    For example, if the name of the class is CGain, the header file name should be Gain.h and the pre-processor definition in AudioIds.h should be #define OBJ_GAIN 9002.
  6. Once the steps above are complete, proceed to generate the VST3 plugin following the steps in the next section.

Steps to generate the VST3 plugin

Pre-Requisites:

    • Python 2.7
    • Cmake version 3.21+, 3.5 confirmed NOT to work
    • Microsoft Visual Studio 2017 or later

Steps to generate the VST3 plugin

  1. Open the command prompt in Administrator mode.
  2. Browse to the external folder and run bat to clean up any previous build artifacts.
  3. Run the batch file bat.
    Once the build is successful, the library with the external audio object, the VST3 plugin, and the corresponding DLL will be copied to the path: public/lib/win64
  4. The VST3 plugin will also be generated in C: Program FilesCommon FilesVST3.
    VST3 Plugin name: vst3.
    If you are building in non-administrator mode, you might see a warning that starts like this.

    Warning when opened in Non-Admin mode

    But this can be ignored. This is a post-build script that gets executed after the Plugin and DLL are generated.

It is recommended not to have long folder names for the build path. CMAKE does not allow the total directory path name to exceed 264 characters.