From 959ab308b32fb0eee4cf60b61989b8fe28889b93 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Feb 2011 21:54:43 +0000 Subject: Remove cruft. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2945 a436a847-0d15-0410-975c-d299462d15a1 --- swig/python/lv2_apply.py | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'swig') 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) -- cgit v1.2.1