11 plugins
= db
.getPluginList()
14 plugin
= db
.getPluginInfo(uri
)
15 print "Plugin: %s" % plugin
.name
16 if plugin
.microname
!= None: print "Tiny name: %s" % plugin
.microname
17 print "License: %s" % plugin
.license
18 print "Classes: %s" % plugin
.classes
19 print "Required features: %s" % list(plugin
.requiredFeatures
)
20 print "Optional features: %s" % list(plugin
.optionalFeatures
)
22 types
= ["Audio", "Control", "Event", "Input", "Output"]
23 for port
in plugin
.ports
:
26 if port
.__dict
__["is" + type]:
28 for sp
in ["defaultValue", "minimum", "maximum", "microname"]:
29 if port
.__dict
__[sp
] != None:
30 extra
.append("%s=%s" % (sp
, repr(port
.__dict
__[sp
])))
31 print "%4s %-20s %-40s %s" % (port
.index
, port
.symbol
, port
.name
, ", ".join(extra
))
32 splist
= port
.scalePoints
33 splist
.sort(lambda x
, y
: cmp(x
[1], y
[1]))
36 print " Scale point %s: %s" % (sp
[1], sp
[0])