This is a collection of audio feature extraction algorithms written in the Vamp plugin format by BBC Research and Development.
Below is a list of plugins and their outputs. Detailed information about each of the features and the algorithms used is contained in the full documentation, which is available to download from the releases page.
- RMS energy
- Low energy ratio
- Intensity
- Intensity ratio
- Onset detection curve
- Moving average of the onset detection curve
- Difference between 1 and 2
- Onsets
- Average onset frequency
- Rhythm strength
- Autocorrelation
- Mean correlation peak
- Peak valley ratio
- Tempo
- Valleys
- Peaks
- Mean
- Spectral flux
- Segmentation
- Detection function
Download the correct plugin for your platform from the releases page and extract the contents into the Vamp system plugin folder.
The following instructions are written for Linux and OS X systems. For installing on Windows, please follow the instructions where possible, but refer to this document when compiling.
You will need a working C++ compiler. On OS X this is done by installing XCode. On Debian/Ubuntu, this can be done with the following command:
sudo apt-get install build-essential
The Vamp SDK is required to compile the plugins. Download the main SDK from http://vamp-plugins.org/develop.html and extract the contents. Follow the installation instructions in build/README.linux or build/README.osx.
Simply edit 'Makefile.inc' and set VAMP_SDK_DIR
to the directory containing the extracted and compiled Vamp SDK.
With the project's folder as your working directory, compile the plugin using the following command for linux:
make -f Makefile.linux
or the following command for OSX:
make -f Makefile.osx
then install it by moving the plugin, category and RDF files to the system Vamp plugin folder (see here for defaults). Use the following command for linux:
mv bbc-vamp-plugins.so bbc-vamp-plugins.cat bbc-vamp-plugins.n3 /usr/local/lib/vamp/
or the following command for OSX:
mv bbc-vamp-plugins.dylib bbc-vamp-plugins.cat bbc-vamp-plugins.n3 /Library/Audio/Plug-Ins/Vamp/
To generate the documentation, install Doxygen and run the following command from the src folder. The documents will appear in doc/html/index.html
doxygen ../bbc-vamp-plugins.doxyfile
The two primary programs which use Vamp plugins are sonic annotator and sonic visualiser.
Below is an example of how to extract the tempo of an audio file using sonic annotator and default settings:
sonic-annotator -d vamp:bbc-vamp-plugins:bbc-rhythm:tempo audio.wav -w csv --csv-stdout
Please refer to the 'COPYING' and 'AUTHORS' files.