Python wrapper for REAPER DAW REST API
Project description
python-reaperdaw
Python wrapper for REAPER DAW REST interface.
Please refer to ReaTeam's web interface modding documentation for API insights.
Setup in Reaper
- Launch your Reaper DAW
- Hit
Ctrl + P
or go to Options > Preferences - Navigate to "Control/OSC/web" menu and click "Add"
- From the "Control surface mode" dropdown menu choose "Web browser interface"
- Set the web interface port or leave default
8080
- Optionally set username:password
- Optionally set the default web interface
- Copy the Access URL and paste it in your browser - now your Reaper has a web interface.
- Hit OK in both preference windows
Example usage
import aiohttp
import asyncio
import json
from reaperdaw import Reaper
async def main(host="localhost", port="8080", username="", password=""):
async with aiohttp.ClientSession() as session:
reaper = Reaper(session, host, port, username, password)
# Sets Master Volume to 0db (maximum volume)
await reaper.setMasterVolume(1)
status = await reaper.getStatus()
response = json.loads(status)
print("Status:", status)
print("Number of tracks:", response["number_of_tracks"])
print("Time signature:", response["time_signature"])
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-reaperdaw-0.0.2.tar.gz
.
File metadata
- Download URL: python-reaperdaw-0.0.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae852d516b7fdcffe89f08b185ffcdbda6c571fd240b9c007f453c13fbe35114 |
|
MD5 | 6e576c79d46ce9a2b3e4e1545f79fba4 |
|
BLAKE2b-256 | c438da07a8ffa2aee32330a2d28487cda1ee816172ec1214b208950d442ace80 |
File details
Details for the file python_reaperdaw-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: python_reaperdaw-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb18c21b6781ced216312ca73581c4157b247eb6a410d36f27838657e2cbdde |
|
MD5 | 4abdc68d11a32774033919d50075b3db |
|
BLAKE2b-256 | 98daa22491be56aa8ed473a3d1cdf6e8d5c54c43d747afbd9f5d344222d7eb9c |