Make sure you have Max 8 installed. You'll also need a C++ compiler and CMake.
- Into
~/Max 8/Documents/Packages
, clone this repository. cd
into the root of this repository.- Fetch the JUCE git submodule with
git submodule update --init --recursive
In Max:
- In the Max host patcher, select the [gen~] object. In the inspector window, change the export_name attribute to
gen_export
. - Back in the patcher window, create a [message] object. In the message, type
exportcode
. Connect the message to the [gen~] object. - Click the message (in a locked patcher, or with Cmd/Ctrl pressed). This should prompt Max to ask where you should export the code. Choose the
source/export
directory of this repository.
In a terminal:
cd
into this repository.mkdir build && cd build
- Generate the CMake project with
cmake ../source
. - Build the code with
cmake --build --config Release .
Your VST should be created inside of build/GenFreeverb_artefacts/VST3
.
- If you'd like to rename your VST export, you can do so at the top of
source/CMakeLists.txt
as instructed by the comments. - The main thing to notice about the export is that JUCE is essentially wrapping the
gen_export.h
methods, namelygen_export::perform()
.