Creating a new plugin
The easiest way to add a new plugin to the library is to use the VstProjectGenerator that is delivered with this library. This command line tool helps you to create the base code for a new VST Fx or Instrument. It duplicates either the BasicFx or the BasicInstrument project and replaces all names, namespaces and creates new GUIDs. Afterwards you might need to re-run CMake (see Installation and Setup) to generate project files for your IDE. Visual Studio already does that for you when compiling any project of the SDK but to make it aware of the added folder, make some small change to the CMakeLists.txt file in the Plugins folder like adding a space at the end.
Otherwise you can just manually copy the BasicInstrument and:
- Go into the new folder and open CMakeLists.txt and replace all occurences of BasicFx/BasicInstrument by the new plugin name.
- In the resource folder also replace the name in the Info.plist file.
- Re-run CMake and open the newly created project.
- Go to the ids.h file and insert two new unique GUIDs (can be generated here - without hypens).
- In version.h, change the plugin name.
- Change the namespace BasicFx/BasicInstrument to a new one related to the plugin name. This is important for creating plugin bundles that contain this plugin.
In both cases you might want to change the plugin category in the factory.cpp source file.