Add [hidden] option to list "Dummy" backend with optmized bundles
[ardour.git] / scripts / s_vamp_plugin_index.lua
1 ardour { ["type"] = "Snippet", name = "Vamp Plugin List" }
2 function factory () return function ()
3
4         local plugins = ARDOUR.LuaAPI.Vamp.list_plugins ();
5         for id in plugins:iter () do
6                 local vamp = ARDOUR.LuaAPI.Vamp(id, Session:nominal_frame_rate())
7                 local vp = vamp:plugin ()
8                 print (" --- VAMP Plugin ---")
9                 print ("Id:", vp:getIdentifier ())
10                 print ("Name:", vp:getName ())
11                 print ("Description:", vp:getDescription ())
12
13                 local progs = vp:getPrograms();
14                 if not progs:empty () then
15                         print ("Preset(s):")
16                         for p in progs:iter () do
17                                 print (" *", p)
18                         end
19                 end
20
21                 local params = vp:getParameterDescriptors ()
22                 if not params:empty () then
23                         print ("Parameters(s):")
24                         for p in params:iter () do
25                                 -- http://manual.ardour.org/lua-scripting/class_reference/#Vamp:PluginBase:ParameterDescriptor
26                                 print (" * Id:", p.identifier, "Name:", p.name, "Desc:", p.description)
27                         end
28                 end
29
30                 local feats = vp:getOutputDescriptors ()
31                 if not feats:empty () then
32                         print ("Output(s):")
33                         for p in feats:iter () do
34                                 -- http://manual.ardour.org/lua-scripting/class_reference/#Vamp:Plugin:OutputDescriptor
35                                 print (" * Id:", p.identifier, "Name:", p.name, "Desc:", p.description)
36                         end
37                 end
38
39         end
40 end end
41