summaryrefslogtreecommitdiffstats
path: root/swig/python
diff options
context:
space:
mode:
Diffstat (limited to 'swig/python')
-rw-r--r--swig/python/Makefile.am6
-rwxr-xr-xswig/python/lv2_apply.py14
-rwxr-xr-xswig/python/lv2_list.py4
3 files changed, 12 insertions, 12 deletions
diff --git a/swig/python/Makefile.am b/swig/python/Makefile.am
index 8a7afc7..3054524 100644
--- a/swig/python/Makefile.am
+++ b/swig/python/Makefile.am
@@ -2,11 +2,11 @@ EXTRA_DIST = lv2_list.py
if WITH_PYTHON
all:
- swig -DPYTHON -Wall -python -I../.. -o slv2_python.c -oh slv2_python.h ../slv2.i
+ swig -DPYTHON -Wall -python -I../.. -o lilv_python.c -oh lilv_python.h ../lilv.i
gcc -fPIC -shared -I../.. $(PYTHON_CPPFLAGS) $(PYTHON_EXTRA_LDFLAGS) \
$(PYTHON_EXTRA_LIBS) $(PYTHON_EXTRA_LDFLAGS) \
- slv2_python.c ../../src/.libs/libslv2.so -o _slv2.so
+ lilv_python.c ../../src/.libs/liblilv.so -o _lilv.so
clean-local:
- rm -f *.[ch] *.so *.o slv2.py
+ rm -f *.[ch] *.so *.o lilv.py
endif
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)
diff --git a/swig/python/lv2_list.py b/swig/python/lv2_list.py
index 786326b..babe1b4 100755
--- a/swig/python/lv2_list.py
+++ b/swig/python/lv2_list.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
-import slv2
+import lilv
-world = slv2.World()
+world = lilv.World()
world.load_all()
for i in world.get_all_plugins():