From 87597f85c5a69a9accd3ce2ed88f2a006173e885 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Feb 2010 04:46:56 +0000 Subject: Comprehensive use of cached URIs and more advanced Value (Atom) system. Atoms (e.g. property values or port values) can now be an Atom::DICT, which maps directly to/from an RDF resource. This is now used to store control bindings as a port property, eliminating the special API. Full interned URIs used everywhere, instead of CURIEs pretending to be URIs. Avoid converting string literals to URIs all over the place. Support for binding MIDI pitch bender and MIDI channel pressure. Saving/restoring of MIDI bindings as a free side-effect of the above. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2409 a436a847-0d15-0410-975c-d299462d15a1 --- src/scripts/python/scripts/flatten.py | 4 ++-- src/scripts/python/scripts/sillysinepatch.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scripts/python') diff --git a/src/scripts/python/scripts/flatten.py b/src/scripts/python/scripts/flatten.py index 7c311451..6b7ed6ec 100755 --- a/src/scripts/python/scripts/flatten.py +++ b/src/scripts/python/scripts/flatten.py @@ -77,7 +77,7 @@ def cloneNode(om, node, patch): # copy port values for port in node.getPorts(): path = '%s/%s/%s' % (patch.getPath(), name, port.getName()) - om.synth.set_property_slow.async(path, "ingen:value", port.value) + om.synth.set_property_slow.async(path, "http://drobilla.net/ns/ingen#value", port.value) om.metadata.set.async(path, 'user-min', '%f' % port.minvalue) om.metadata.set.async(path, 'user-max', '%f' % port.maxvalue) return name @@ -124,7 +124,7 @@ def flatten(om, patch): conns = port4.getConnections().keys() if len(conns) == 0: portValue = port4.value - om.synth.set_property_slow.async(dst, "ingen:value", portValue) + om.synth.set_property_slow.async(dst, "http://drobilla.net/ns/ingen#value", portValue) else: for port3 in port4.getConnections().keys(): src = port3.getPath() diff --git a/src/scripts/python/scripts/sillysinepatch.py b/src/scripts/python/scripts/sillysinepatch.py index f46c6d46..24bf68e8 100644 --- a/src/scripts/python/scripts/sillysinepatch.py +++ b/src/scripts/python/scripts/sillysinepatch.py @@ -29,8 +29,8 @@ def main(om): om.synth.create_patch("/silly_sine", 1) om.synth.create_node("/silly_sine/output", "Internal", "", "audio_output", 0) om.synth.create_node("/silly_sine/sine", "LADSPA", "cmt.so", "sine_fcac", 0) - om.synth.set_property("/silly_sine/sine/Frequency", "ingen:value", 440.0) - om.synth.set_property("/silly_sine/sine/Amplitude", "ingen:value", 1.0) + om.synth.set_property("/silly_sine/sine/Frequency", "http://drobilla.net/ns/ingen#value", 440.0) + om.synth.set_property("/silly_sine/sine/Amplitude", "http://drobilla.net/ns/ingen#value", 1.0) om.synth.connect("/silly_sine/sine/Output", "/silly_sine/output/out") om.synth.enable_patch("/silly_sine") om.engine.enable() -- cgit v1.2.1