Mercurial > hg > qm-vamp-plugins
diff libmain.cpp @ 9:507f923a93e8
* Add Constant-Q Spectrogram plugin
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 15 May 2006 19:56:21 +0000 |
parents | 991d0fe8bb27 |
children | 799b13ab3792 |
line wrap: on
line diff
--- a/libmain.cpp Mon May 15 15:12:46 2006 +0000 +++ b/libmain.cpp Mon May 15 19:56:21 2006 +0000 @@ -12,10 +12,12 @@ #include "plugins/BeatDetect.h" #include "plugins/ChromagramPlugin.h" +#include "plugins/ConstantQSpectrogram.h" #include "plugins/TonalChangeDetect.h" static Vamp::PluginAdapter<BeatDetector> beatDetectorAdapter; static Vamp::PluginAdapter<ChromagramPlugin> chromagramPluginAdapter; +static Vamp::PluginAdapter<ConstantQSpectrogram> constantQAdapter; static Vamp::PluginAdapter<TonalChangeDetect> tonalChangeDetectorAdapter; const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int index) @@ -23,7 +25,8 @@ switch (index) { case 0: return beatDetectorAdapter.getDescriptor(); case 1: return chromagramPluginAdapter.getDescriptor(); - case 2: return tonalChangeDetectorAdapter.getDescriptor(); + case 2: return constantQAdapter.getDescriptor(); + case 3: return tonalChangeDetectorAdapter.getDescriptor(); default: return 0; } }