mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 13:47:24 +01:00
Example snippet to list plugins (and their presets)
This commit is contained in:
parent
d95df91642
commit
523f8b4ba4
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue