[SCM] calf/master: + Big Bull: support string ports, do not check lv2:default on non-float ports
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:39:16 UTC 2013
The following commit has been merged in the master branch:
commit 93f0f9e5a5d155d8b7a2680397b17cb0ce2bbaa6
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Feb 1 10:32:28 2009 +0000
+ Big Bull: support string ports, do not check lv2:default on non-float ports
diff --git a/bigbull/inspect.py b/bigbull/inspect.py
index c92e8a7..e04c098 100755
--- a/bigbull/inspect.py
+++ b/bigbull/inspect.py
@@ -21,7 +21,7 @@ for uri in plugins:
print "Required features: %s" % list(plugin.requiredFeatures)
print "Optional features: %s" % list(plugin.optionalFeatures)
print "Ports:"
- types = ["Audio", "Control", "Event", "Input", "Output"]
+ types = ["Audio", "Control", "Event", "Input", "Output", "String"]
for port in plugin.ports:
extra = []
for type in types:
diff --git a/bigbull/lv2.py b/bigbull/lv2.py
index 98c08f6..5dff4e7 100644
--- a/bigbull/lv2.py
+++ b/bigbull/lv2.py
@@ -6,6 +6,7 @@ import calfpytools
lv2 = "http://lv2plug.in/ns/lv2core#"
lv2evt = "http://lv2plug.in/ns/ext/event#"
+lv2str = "http://lv2plug.in/ns/dev/string-port#"
rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
rdfs = "http://www.w3.org/2000/01/rdf-schema#"
epi = "http://lv2plug.in/ns/dev/extportinfo#"
@@ -275,6 +276,7 @@ class LV2DB:
"isAudio" : lv2 + "AudioPort",
"isControl" : lv2 + "ControlPort",
"isEvent" : lv2evt + "EventPort",
+ "isString" : lv2str + "StringPort",
"isInput" : lv2 + "InputPort",
"isOutput" : lv2 + "OutputPort",
}
@@ -302,7 +304,12 @@ class LV2DB:
pdata.scalePoints = splist
else:
pdata.scalePoints = []
- pdata.defaultValue = info.getProperty(psubj, [lv2 + "default"], optional = True, single = True)
+ if pdata.isControl:
+ pdata.defaultValue = info.getProperty(psubj, [lv2 + "default"], optional = True, single = True)
+ elif pdata.isString:
+ pdata.defaultValue = info.getProperty(psubj, [lv2str + "default"], optional = True, single = True)
+ else:
+ pdata.defaultValue = None
pdata.minimum = info.getProperty(psubj, [lv2 + "minimum"], optional = True, single = True)
pdata.maximum = info.getProperty(psubj, [lv2 + "maximum"], optional = True, single = True)
pdata.microname = info.getProperty(psubj, [tinyname_uri], optional = True, single = True)
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list