vamp-plugins / vampy-host

Python module to load and use native Vamp plugins for audio feature analysis.
https://pypi.python.org/pypi/vamp
Other
28 stars 6 forks source link

custom plugin folder #4

Open loretoparisi opened 5 years ago

loretoparisi commented 5 years ago

Currently, I'm loading the VAMP plugin from the default installation folder, that in macOS is $HOME/Library/Audio/Plug-Ins/Vamp/, so I load a specific plugin by key like

segments = vamp.collect(data, rate, "segmentino:segmentino")

This works ok. I would like to know if there is an interface to specify a custom plugin root folder. I would like to have both libraries for darwin and linux i.e. the .dylib and the .a files in one place or organized by platform.

I can see that there is a get_plugin_path api, but I don't see in collect or load_plugin if there is any way to set a custom path as the plugin root folder.

alastair commented 2 years ago

You can set the VAMP_PATH environment variable, as described at the bottom of https://vamp-plugins.org/download.html#install