diff options
author | David Robillard <d@drobilla.net> | 2013-12-31 03:28:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-31 03:28:54 +0000 |
commit | 763a3eb36fa35c53b39536779a7fefefff541d1c (patch) | |
tree | 85746bd7ac0a090e5e4c3d5b24750d36b79fe687 /scripts/ingenams | |
parent | a83edd470077139411f5cf2cb6f0def5dc62237c (diff) | |
download | ingen-763a3eb36fa35c53b39536779a7fefefff541d1c.tar.gz ingen-763a3eb36fa35c53b39536779a7fefefff541d1c.tar.bz2 ingen-763a3eb36fa35c53b39536779a7fefefff541d1c.zip |
Update ingenams to use the new ams-lv2 instead of the dead avw-lv2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5237 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'scripts/ingenams')
-rwxr-xr-x | scripts/ingenams | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/ingenams b/scripts/ingenams index a736efa1..0d35bd39 100755 --- a/scripts/ingenams +++ b/scripts/ingenams @@ -18,7 +18,7 @@ import ingen import rdflib import sys -avw_prefix = 'http://avwlv2.sourceforge.net/plugins/avw/' +ams_prefix = 'http://github.com/blablack/ams-lv2/' fomp_prefix = 'http://drobilla.net/plugins/fomp/' class World: @@ -33,10 +33,10 @@ class World: def add_block(self, mod_id, plugin_uri, x, y): self.server.put('/' + self.mod_sym(mod_id), - 'a ingen:Block ;\n' - + 'ingen:prototype <%s> ;\n' % plugin_uri - + 'ingen:canvasX %f ;\n' % x - + 'ingen:canvasY %f' % y) + ('\t\ta ingen:Block ;\n' + + 'ingen:prototype <%s> ;\n' % plugin_uri + + 'ingen:canvasX %f ;\n' % x + + 'ingen:canvasY %f' % y).replace('\n', '\n\t\t')) def add_arc(self, head_port_id, tail_port_id, @@ -86,7 +86,7 @@ class World: for (head_port_id, tail_port_id, head_mod_id, tail_mod_id, jack_color, cable_color) in self.pending_arcs: - print('ARC %s:%s => %s:%s' % (tail_mod_id, tail_port_id, head_mod_id, head_port_id)) + print('%s:%s => %s:%s' % (tail_mod_id, tail_port_id, head_mod_id, head_port_id)) try: tail_mod = rdflib.URIRef(self.server.server_base + self.mod_sym(tail_mod_id)) head_mod = rdflib.URIRef(self.server.server_base + self.mod_sym(head_mod_id)) @@ -107,7 +107,7 @@ class Special: # Module types list, indexed by numeric ID in file # Except where otherwise commented, these correspond to internal modules, -# and the string is the suffix of the corresponding AVW LV2 plugin URI +# and the string is the suffix of the corresponding AMS LV2 plugin URI module_types = [ "custom", # 0 = custom (unsupported) "vco", @@ -188,7 +188,7 @@ def scala_module(world, mod_id, scala_name): pass def standard_module(world, mod_id, x, y, name, arg): - lv2_uri = avw_prefix + name + lv2_uri = ams_prefix + name world.add_block(mod_id, lv2_uri, x, y) def float_control(world, mod_id, port_index, value, |