summaryrefslogtreecommitdiffstats
path: root/swig/python/lv2_apply.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 21:54:43 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 21:54:43 +0000
commit959ab308b32fb0eee4cf60b61989b8fe28889b93 (patch)
tree6f3abb7436eb2ee4d43bd0383e5232e8c0dafeec /swig/python/lv2_apply.py
parent3e9f130155da5d36182fc4b59b0b6f2fba8c02a0 (diff)
downloadlilv-959ab308b32fb0eee4cf60b61989b8fe28889b93.tar.gz
lilv-959ab308b32fb0eee4cf60b61989b8fe28889b93.tar.bz2
lilv-959ab308b32fb0eee4cf60b61989b8fe28889b93.zip
Remove cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2945 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'swig/python/lv2_apply.py')
-rwxr-xr-xswig/python/lv2_apply.py22
1 files changed, 3 insertions, 19 deletions
diff --git a/swig/python/lv2_apply.py b/swig/python/lv2_apply.py
index 8dfc200..320a5f2 100755
--- a/swig/python/lv2_apply.py
+++ b/swig/python/lv2_apply.py
@@ -88,27 +88,11 @@ def read_float(wf, nframes):
return wavs
-#input_raw = wav_in.readframes(nframes)
-#input_frames = wave.struct.unpack('@h', input_raw)
-#print input_frames
-
-in_buf = read_float(wav_in, nframes)
-out_l_buf = []
-out_r_buf = []
-for i in xrange(nframes):
- # FIXME: slow
- out_l_buf += [ 0.0 ] # FIXME: slow
- out_r_buf += [ 0.0 ] # FIXME: slow
-
-print '%s => %s => %s @ %d Hz' % (wav_in_path, plugin.get_name(), wav_out_path, rate)
-
-print 'Instance:', instance
+in_buf = read_float(wav_in, nframes)
+# TODO: buffer marshaling
#instance.connect_port(3, in_buf)
-#instance.connect_port(4, out_l_buf)
-#instance.connect_port(5, our_r_buf)
-#buf = numpy.array(in_buf)
-#print buf
+print '%s => %s => %s @ %d Hz' % (wav_in_path, plugin.get_name(), wav_out_path, rate)
instance.connect_port(3, in_buf)