[SCM] calf/master: + Big Bull: forgot to add inspect.py
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:37:19 UTC 2013
The following commit has been merged in the master branch:
commit 6aae11f248affdc057808b2fc2914fbf8e5e2400
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date: Wed Jun 18 19:19:10 2008 +0000
+ Big Bull: forgot to add inspect.py
git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@204 78b06b96-2940-0410-b7fc-879d825d01d8
diff --git a/bigbull/inspect.py b/bigbull/inspect.py
new file mode 100644
index 0000000..793be55
--- /dev/null
+++ b/bigbull/inspect.py
@@ -0,0 +1,45 @@
+import os
+import sys
+import fakeserv
+import client
+
+fakeserv.start()
+
+plugins = {}
+
+class URIListReceiver:
+ def receiveData(self, data):
+ #print "URI list received: " + repr(data.result)
+ for uri in data.result:
+ cmd = client.CommandExec('get_info', uri)
+ cmd.run()
+ res = cmd.result
+ plugins[res["name"]] = res
+
+cmd = client.CommandExec('get_uris', 'http://lv2plug.in/ns/lv2core#')
+cmd.onOK(URIListReceiver())
+cmd.run()
+
+for p in plugins.keys():
+ pl = plugins[p]
+ print "Plugin: %s" % pl["name"]
+ print "License: %s" % pl["license"]
+ print "Classes: %s" % pl["classes"]
+ print "Ports:"
+ types = ["Audio", "Control", "Event", "Input", "Output"]
+ for port in pl["ports"]:
+ extra = []
+ for type in types:
+ if port["is" + type]:
+ extra.append(type)
+ for sp in ["default", "minimum", "maximum"]:
+ if port[sp] != None:
+ extra.append("%s=%s" % (sp, port[sp]))
+ 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]))
+ if len(splist):
+ for sp in splist:
+ print " Scale point %s: %s" % (sp[1], sp[0])
+ #print port
+ print
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list