13
0

Example snippet to list plugins (and their presets)

This commit is contained in:
Robin Gareus 2018-05-31 16:01:52 +02:00
parent d95df91642
commit 523f8b4ba4

View File

@ -2,6 +2,18 @@ ardour { ["type"] = "Snippet", name = "Plugin Utils" }
function factory () return function ()
-------------------------------------------------------------------------------
-- List all Plugins
for p in ARDOUR.LuaAPI.list_plugins():iter() do
print (p.name, p.unique_id, p.type)
local psets = p:get_presets()
if not empty:empty() then
for pset in psets:iter() do
print (" - ", pset.label)
end
end
end
-------------------------------------------------------------------------------
-- add a Plugin (here LV2) to all mono tracks that contain the pattern "dru"
-- and load a plugin-preset (if it exists)