Mercurial > hg > vamp-plugin-sdk
diff examples/plugins.cpp @ 35:154f86cb8c99
* Add an implementation of Dan Barry's percussion onset detector
author | cannam |
---|---|
date | Wed, 20 Sep 2006 13:51:22 +0000 |
parents | 83d3eb580731 |
children | 31cd55174467 |
line wrap: on
line diff
--- a/examples/plugins.cpp Tue Aug 01 09:10:06 2006 +0000 +++ b/examples/plugins.cpp Wed Sep 20 13:51:22 2006 +0000 @@ -39,15 +39,18 @@ #include "PluginAdapter.h" #include "ZeroCrossing.h" #include "SpectralCentroid.h" +#include "PercussionOnsetDetector.h" static Vamp::PluginAdapter<ZeroCrossing> zeroCrossingAdapter; static Vamp::PluginAdapter<SpectralCentroid> spectralCentroidAdapter; +static Vamp::PluginAdapter<PercussionOnsetDetector> percussionOnsetAdapter; const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int index) { switch (index) { case 0: return zeroCrossingAdapter.getDescriptor(); case 1: return spectralCentroidAdapter.getDescriptor(); + case 2: return percussionOnsetAdapter.getDescriptor(); default: return 0; } }