[SCM] calf/master: + Big Bull: check for events
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 7153114dc2b1c3606a3a8d0802a8687943c696e1
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Feb 1 10:38:51 2009 +0000
+ Big Bull: check for events
diff --git a/bigbull/inspect.py b/bigbull/inspect.py
index e04c098..a858144 100755
--- a/bigbull/inspect.py
+++ b/bigbull/inspect.py
@@ -30,6 +30,15 @@ for uri in plugins:
for sp in ["defaultValue", "minimum", "maximum", "microname"]:
if port.__dict__[sp] != None:
extra.append("%s=%s" % (sp, repr(port.__dict__[sp])))
+ if len(port.events):
+ s = list()
+ for evt in port.events:
+ if evt in lv2.event_type_names:
+ s.append(lv2.event_type_names[evt])
+ else:
+ s.append(evt)
+ extra.append("events=%s" % ",".join(s))
+
print "%4s %-20s %-40s %s" % (port.index, port.symbol, port.name, ", ".join(extra))
splist = port.scalePoints
splist.sort(lambda x, y: cmp(x[1], y[1]))
diff --git a/bigbull/lv2.py b/bigbull/lv2.py
index 5dff4e7..7d69f36 100644
--- a/bigbull/lv2.py
+++ b/bigbull/lv2.py
@@ -13,6 +13,10 @@ epi = "http://lv2plug.in/ns/dev/extportinfo#"
rdf_type = rdf + "type"
tinyname_uri = "http://lv2plug.in/ns/dev/tiny-name"
+event_type_names = {
+ "http://lv2plug.in/ns/ext/midi#MidiEvent" : "MIDI"
+}
+
class DumpRDFModel:
def addTriple(self, s, p, o):
print "%s [%s] %s" % (s, p, repr(o))
@@ -314,6 +318,7 @@ class LV2DB:
pdata.maximum = info.getProperty(psubj, [lv2 + "maximum"], optional = True, single = True)
pdata.microname = info.getProperty(psubj, [tinyname_uri], optional = True, single = True)
pdata.properties = set(info.getProperty(psubj, [lv2 + "portProperty"], optional = True))
+ pdata.events = set(info.getProperty(psubj, [lv2evt + "supportsEvent"], optional = True))
ports.append(pdata)
portDict[pdata.uri] = pdata
ports.sort(lambda x, y: cmp(x.index, y.index))
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list