summaryrefslogtreecommitdiff
path: root/reapify
diff options
context:
space:
mode:
authorpepper <pepper@chimecrisis.com>2014-04-10 22:39:41 -0700
committerpepper <pepper@chimecrisis.com>2014-04-10 22:39:41 -0700
commit663f44e2f68c790d19e43cade1fca6bd63f988ac (patch)
tree999ebff9ce3fc9233ad8a8abf98a79c74fe4cd51 /reapify
parentcc90b0f460d3fe57f13e7c857985fd363aa5ac58 (diff)
new stuff
Diffstat (limited to 'reapify')
-rwxr-xr-xreapify22
1 files changed, 22 insertions, 0 deletions
diff --git a/reapify b/reapify
new file mode 100755
index 0000000..6d69e13
--- /dev/null
+++ b/reapify
@@ -0,0 +1,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")
+
+