Note that this documentation is only of overarching designs and how-tos. Code in the project is documented using docstring, and will be displayed inline by most code editors.
-
If you haven't already, create a GitHub account, and set up an SSH key.
-
Create a fork of the project, so that you can work without the risk of breaking the existing project.
-
Run a
git clone --recursive git@github.com:[YourUsername]/Universal-Controller-Script.gitcommand with your terminal inside a directory of your choosing (perhaps create aSourcedirectory in your user data folder). -
Since the codebase contains code that isn't required by a regular installation, we will need to create a symbolic link between the project's
srcdirectory in FL Studio'sDocuments/Image-Line/FL Studio/Settings/Hardwarefolder, so that FL Studio can detect it. Note that to create symbolic links, you should-
On Windows inside an admin command prompt (this doesn't work in PowerShell), run the command
mklink /D "C:\Users\<username>\Documents\Image-Line\FL Studio\Settings\Hardware\UniversalController" "\path\to\clone\location\Universal-Controller-Script\src". -
On MacOS (please test) and Linux, run
ln -s /path/to/clone/button/Universal-Controller-Script/src/ '/path/to/user/directory/Documents/Image-Line/FL Studio/Settings/Hardware/UniversalController'.
-
-
Install Python if you're on Windows. On MacOS and Linux it is built in.
-
Open the repository in your editor of choice. I've ensured it works well with VS Code, but others should be fine too.
-
Install any recommended extensions if you are in VS Code.
-
Open a terminal in the repository folder and create a Python virtual environment. This will keep the project's dependencies separate from any other ones you have installed, ensuring nothing can get broken. Run
python -m venv .venv. -
When VS Code or your editor prompts you to activate the virtual environment, do so.
-
Activate the virtual environment in your terminal (refer to the virtual environment documentation linked above). In VS Code you can just restart your terminal.
-
Install the project dependencies. Run
pip install -r requirements.txt. -
Ensure that your coding environment is functioning correctly by running the code from your editor. If all your dependencies are set up correctly, it will start up, print the welcome message then exit.
-
Get familiar with the project's style guidelines
-
Make sure you've joined the Discord server so that I can help out if you run into any issues.