diff examples/plugins.cpp @ 41:31cd55174467

* Add Dan Stowell's simple implementation of the SuperCollider amplitude follower method
author cannam
date Wed, 11 Oct 2006 11:39:02 +0000
parents 154f86cb8c99
children b907557b2fb9
line wrap: on
line diff
--- a/examples/plugins.cpp	Mon Oct 09 12:45:14 2006 +0000
+++ b/examples/plugins.cpp	Wed Oct 11 11:39:02 2006 +0000
@@ -40,10 +40,12 @@
 #include "ZeroCrossing.h"
 #include "SpectralCentroid.h"
 #include "PercussionOnsetDetector.h"
+#include "AmplitudeFollower.h"
 
 static Vamp::PluginAdapter<ZeroCrossing> zeroCrossingAdapter;
 static Vamp::PluginAdapter<SpectralCentroid> spectralCentroidAdapter;
 static Vamp::PluginAdapter<PercussionOnsetDetector> percussionOnsetAdapter;
+static Vamp::PluginAdapter<AmplitudeFollower> amplitudeAdapter;
 
 const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int index)
 {
@@ -51,6 +53,7 @@
     case  0: return zeroCrossingAdapter.getDescriptor();
     case  1: return spectralCentroidAdapter.getDescriptor();
     case  2: return percussionOnsetAdapter.getDescriptor();
+    case  3: return amplitudeAdapter.getDescriptor();
     default: return 0;
     }
 }