blob: 6d69e130e8f6fa42e37093b7a10d1a7ca754831b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/python
from subprocess import call, Popen
from simpleOSC import *
import socket
#make sure reaper is running
check = call([ 'pgrep', 'REAPER' ]);
if check:
Popen(['/Applications/REAPER64.app/Contents/MacOS/REAPER'])
ip_address = socket.gethostbyname(socket.gethostname())
#start the client
initOSCClient(ip_address, 8088)
#start the server to receive messages (not yet implemented)
initOSCServer(ip_address, 8808)
#run main.py
sendOSCMsg("/action/41061")
|