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