diff options
| author | pepper <pepper@chimecrisis.com> | 2014-04-10 22:47:37 -0700 |
|---|---|---|
| committer | pepper <pepper@chimecrisis.com> | 2014-04-10 22:47:37 -0700 |
| commit | 6e114d199038b63d52db492b7c3c683064ed3fef (patch) | |
| tree | a087c32752bca941442ee6fbbf2151efea73d896 | |
| parent | 663f44e2f68c790d19e43cade1fca6bd63f988ac (diff) | |
got rid of cruft
| -rw-r--r-- | reaper_test.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/reaper_test.py b/reaper_test.py deleted file mode 100644 index 0749485..0000000 --- a/reaper_test.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python2 -#import socket -#TCP_IP = '127.0.0.1' -#TCP_PORT = 5005 -#BUFFER_SIZE = 1024 -#MESSAGE = "process: file1.mid; plugin: Omnisphere.vst; output: file2.wav" -# -#s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -#s.connect((TCP_IP, TCP_PORT)) -#s.send(MESSAGE) -#data = s.recv(BUFFER_SIZE) -#s.close() -# -#print "received data:", data - -import socket - -TCP_IP = '127.0.0.1' -TCP_PORT = 5005 -BUFFER_SIZE = 20 # Normally 1024, but we want fast response - -s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -s.bind((TCP_IP, TCP_PORT)) -s.listen(1) - -def processData(data_string): - parts = data_string.split(";") - #MESSAGE = "file1.mid;Omnisphere.vst;file2.wav" - process = parts[0]; - plugin = parts[1]; - output = parts[2]; - #call reaper internal functions here - insert = RPR_InsertMedia(parts[0], 1); - - -conn, addr = s.accept() -print 'Connection address:', addr -while 1: - data = conn.recv(BUFFER_SIZE) - if not data: break - print "received data:", data - processData(data); #what is conn.send(data)? - response_string = "Data recieved! processing...%s" % (data); - conn.send(response_string) # echo...something like this is ok? looks so, test it -# conn.send(data) # echo -conn.close() - - -#so this is basically it? yep ok I'm just going to look quickly at the reaper api to see if I can find the right functions -#well I'm not seeing what I need right away...do you think I should look for a similar script, or try to study the api intensely? it's python already so it should work well arlight I'll work from here...thanks! no problems |
