mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
add API to list Vamp Plugins
This commit is contained in:
parent
44b41e3058
commit
22f342c8d8
3 changed files with 14 additions and 0 deletions
|
|
@ -176,6 +176,12 @@ namespace ARDOUR { namespace LuaAPI {
|
||||||
public:
|
public:
|
||||||
Vamp (const std::string&, float sample_rate);
|
Vamp (const std::string&, float sample_rate);
|
||||||
~Vamp ();
|
~Vamp ();
|
||||||
|
|
||||||
|
/** Search for all available available Vamp plugins.
|
||||||
|
* @returns list of plugin-keys
|
||||||
|
*/
|
||||||
|
static std::vector<std::string> list_plugins ();
|
||||||
|
|
||||||
::Vamp::Plugin* plugin () { return _plugin; }
|
::Vamp::Plugin* plugin () { return _plugin; }
|
||||||
|
|
||||||
/** high-level abstraction to process a single channel of the given Readable.
|
/** high-level abstraction to process a single channel of the given Readable.
|
||||||
|
|
|
||||||
|
|
@ -539,6 +539,13 @@ void LuaTableRef::assign (luabridge::LuaRef* rv, T key, const LuaTableEntry& s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<std::string>
|
||||||
|
LuaAPI::Vamp::list_plugins ()
|
||||||
|
{
|
||||||
|
using namespace ::Vamp::HostExt;
|
||||||
|
PluginLoader* loader (PluginLoader::getInstance());
|
||||||
|
return loader->listPlugins ();
|
||||||
|
}
|
||||||
|
|
||||||
LuaAPI::Vamp::Vamp (const std::string& key, float sample_rate)
|
LuaAPI::Vamp::Vamp (const std::string& key, float sample_rate)
|
||||||
: _plugin (0)
|
: _plugin (0)
|
||||||
|
|
|
||||||
|
|
@ -1615,6 +1615,7 @@ LuaBindings::common (lua_State* L)
|
||||||
|
|
||||||
.beginClass <ARDOUR::LuaAPI::Vamp> ("Vamp")
|
.beginClass <ARDOUR::LuaAPI::Vamp> ("Vamp")
|
||||||
.addConstructor <void (*) (const std::string&, float)> ()
|
.addConstructor <void (*) (const std::string&, float)> ()
|
||||||
|
.addStaticFunction ("list_plugins", &ARDOUR::LuaAPI::Vamp::list_plugins)
|
||||||
.addFunction ("plugin", &ARDOUR::LuaAPI::Vamp::plugin)
|
.addFunction ("plugin", &ARDOUR::LuaAPI::Vamp::plugin)
|
||||||
.addFunction ("analyze", &ARDOUR::LuaAPI::Vamp::analyze)
|
.addFunction ("analyze", &ARDOUR::LuaAPI::Vamp::analyze)
|
||||||
.addFunction ("reset", &ARDOUR::LuaAPI::Vamp::reset)
|
.addFunction ("reset", &ARDOUR::LuaAPI::Vamp::reset)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue