S9 - VST Plugin (Pd/Py)

First real-time system with VST Interface and Python Backend


Table of contents

  1. Overview
  2. Tutorial Video
  3. Source Code
  4. Running the System
    1. Cloning the Repository
    2. Python Environment Setup (using venv)
    3. Running Python script
  5. Move Camomile Wrapped Pure Data Patch to the correct location

Overview


Alt text


This version of the system consists of a Pure Data frontend and a Python backend.

The frontend takes care of MIDI handling, visualization and interaction with the model.

On the other hand, the backend is responsible for running the model and sending the output back to the frontend.

There is a self-contained VST version of the system as well that can be accessed here.


Tutorial Video



Source Code

The source code for the system can be found here.

In the repository, you can find the detailed instructions on how to run the system. Below is also a brief overview of the steps required to run the system.


Running the System

Cloning the Repository

Clone the repository wherever you prefer

git clone https://github.com/behzadhaki/MonotonicGrooveTransformer 

Python Environment Setup (using venv)

Then, open the terminal and navigate to the project folder

cd MonotonicGrooveTransformer

Now create a virtual environment for installing the dependencies

python3 -m venv TorchOSC_venv

Activate the environment

source TorchOSC_venv/bin/activate 

upgrade pip

pip3 install --upgrade pip 

Install pytorch for MAC and Win:

 pip3 install torch  

or for Linux:

pip3 install torch==1.10.2+cpu 

Now, install python-osc package

pip3 install python-osc

Running Python script

Go to CMC folder, and activate environment

source TorchOSC_venv/bin/activate

Finally, run the python script

python run_generative_engine.py  --py2pd_port 1123 --pd2py_port 1415 --wait 2 --model light_version

Move Camomile Wrapped Pure Data Patch to the correct location

Move the VST (Camomile Wrapped Pure Data) to the correct location on your computer.