This document will show you how to install beyond_reaper - a package that can allow users to controll REAPER using python.
The original source of package is from here. The version used here is V27.
- python 3.4+
- MAC / Windows
- anaconda (recommended)
The document is currently based on MAC. For Windows users, there are just few difference in path or command, so you can keep reading. I will find someday to complete it.
Stable Environment
- REAPER: v5.982, v5.99
- python: 3.7
conda install python=3.7 # force to reset anaconda python version
The instructions is for MacOS. For Windows users, there are only a few difference in commands or path setting.
Dowanload and unzip the package beyond_reaper.zip to anywhere you prefer.
Next, you will found there is an original insturctions in the folder:
beyond_reaper/Introduction & Installation.txt.
The remaining steps are based on it. But I will visualize and explain every steps to make it easier to understand.
Enter the full path to the "./Modules" directory on the first line.
First of all, check the current python you are using. Simply type this in your command line:
$ which python
Depends on yout environment, the path might be different. Here are two common scenarios:
- For native python users:
The output of above command sould be like this:
/usr/local/bin/python
Please copy beyond.pth to:
/usr/local/lib/python3.7/site-packages
# original instruction: <Python Path>/Lib/site-packages
- For anaconda users:
The output of the command sould be like this:
/Users/username/anaconda3/bin/python
Please copy beyond.pth to:
/Users/username/anaconda3/lib/python3.7/site-packages
# original instruction: <Python Path>/Lib/site-packages
- Open your REAEPR application
- Open
/Modules/beyond/Reaper/Settings.py
click the checkbox to enable python. For native python users, everything should be done.
If .dylib or .dll is not found, especially happened in anaconda users, please follow the steps here:
- Find the location of your python .dylib or .dll. For example, mine is
/Users/username/anaconda3/lib/libpython3.7m.dylib
- Unfortunately, REAPER can only recognize
libpython.dylib
file. So make a softlink by
$ ln -s libpython3.7m.dylib libpython.dylib
- Fill the "Custom path to python dll directory" section.
For example, mine is
/Users/username/anaconda3/lib
, as shown in the figure - Remeber to click "Apply"
Open /Modules/beyond/Reaper/Settings.py
, Step 1.
- From Reaper's "New Action>Load ReaScript" press "ReaScript: Load..."
- Find and select file
...\Modules\beyond\Reaper\RemoteControl.py
- Back on the Actions list, you will see "Script: RemoteControl.py"
- Right click on it and select "Copy selected action command ID"
- Paste that to the line here:
# in ...\Modules\beyond\Reaper\Settings.py
Reaper_RemoteControl_CommandID = "_RS..."
Open /Modules/beyond/Reaper/Settings.py
, Step 2.
- From Reaper's "Options/Preferences" select "Control/OSC/web" page.
- Press "Add" and select "OSC (Open Sound Control)".
- Make sure the "Pattern config:" is set to Default.
- Select "Mode" to local "port"
Open /Modules/beyond/Reaper/Settings.py
, Step 3.
Again, check the current location of python by typing:
$ which python
Paste it to the line:
# native python
Python = r"C:\Program Files\Python\python.exe"
# anaconda
Python = r"/Users/username/anaconda3/bin/python"
Finally, we are here. But there are some minor settings you need to pay attention to:
- Click "Automatically close when finished", or it will block your process.
-
Timeout setting
In/Modules/beyond/Network.py
, there is a variable namedTimeOut
. If you have a file consuming lots of time, you should make it larger. -
pytautogui is your best friend. If there is any dialogue window blocking your program, just use it to simulate human's behavior - click next!
-
The detailed instructions of setting for the musicians and engneers, please visit project_setting.md.