summaryrefslogtreecommitdiffstats
path: root/swig/python/lv2_apply.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 22:00:55 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 22:00:55 +0000
commit2f7085f51e560aebd73be9bd99a532f231406a70 (patch)
tree8041c061577a96f671df895549c37e2b9091e3e1 /swig/python/lv2_apply.py
parent12a0318dc7974474f429cb46a4f7c8c78d4a7ae8 (diff)
downloadlilv-2f7085f51e560aebd73be9bd99a532f231406a70.tar.gz
lilv-2f7085f51e560aebd73be9bd99a532f231406a70.tar.bz2
lilv-2f7085f51e560aebd73be9bd99a532f231406a70.zip
Fix up the last remnants of the old name.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3219 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'swig/python/lv2_apply.py')
-rwxr-xr-xswig/python/lv2_apply.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/swig/python/lv2_apply.py b/swig/python/lv2_apply.py
index 3eb4ea7..736311f 100755
--- a/swig/python/lv2_apply.py
+++ b/swig/python/lv2_apply.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import math
-import slv2
+import lilv
import sys
import wave
import numpy
@@ -16,8 +16,8 @@ plugin_uri = sys.argv[1]
wav_in_path = sys.argv[2]
wav_out_path = sys.argv[3]
-# Initialise SLV2
-world = slv2.World()
+# Initialise LILV
+world = lilv.World()
world.load_all()
# Find plugin
@@ -26,9 +26,9 @@ if not plugin:
print "Unknown plugin `%s'\n" % plugin_uri
sys.exit(1)
-lv2_InputPort = world.new_uri(slv2.SLV2_PORT_CLASS_INPUT)
-lv2_OutputPort = world.new_uri(slv2.SLV2_PORT_CLASS_OUTPUT)
-lv2_AudioPort = world.new_uri(slv2.SLV2_PORT_CLASS_AUDIO)
+lv2_InputPort = world.new_uri(lilv.LILV_PORT_CLASS_INPUT)
+lv2_OutputPort = world.new_uri(lilv.LILV_PORT_CLASS_OUTPUT)
+lv2_AudioPort = world.new_uri(lilv.LILV_PORT_CLASS_AUDIO)
n_audio_in = plugin.get_num_ports_of_class(lv2_InputPort, lv2_AudioPort)
n_audio_out = plugin.get_num_ports_of_class(lv2_OutputPort, lv2_AudioPort)
@@ -60,7 +60,7 @@ rate = wav_in.getframerate()
nframes = wav_in.getnframes()
# Instantiate plugin
-instance = slv2.Instance(plugin, rate)
+instance = lilv.Instance(plugin, rate)
def read_float(wf, nframes):
wav = wf.readframes(nframes)