diff plugin/FeatureExtractionPluginFactory.cpp @ 37:838652cc31e6

MacOS fixes, TonalChangeDetector added
author Martin Gasser
date Fri, 03 Mar 2006 16:32:45 +0000
parents a7ed14263fe4
children bac8b14ab355
line wrap: on
line diff
--- a/plugin/FeatureExtractionPluginFactory.cpp	Thu Mar 02 16:58:49 2006 +0000
+++ b/plugin/FeatureExtractionPluginFactory.cpp	Fri Mar 03 16:32:45 2006 +0000
@@ -13,6 +13,8 @@
 #include "plugins/BeatDetect.h" //!!!
 #include "plugins/ChromagramPlugin.h" //!!!
 #include "plugins/ZeroCrossing.h" //!!!
+// NOTE: added by Martin Gasser
+#include "plugins/TonalChangeDetect.h" //!!!
 
 #include <iostream>
 
@@ -67,6 +69,8 @@
     rv.push_back("sv:_builtin:beats"); //!!!
     rv.push_back("sv:_builtin:chromagram"); //!!!
     rv.push_back("sv:_builtin:zerocrossing"); //!!!
+	// NOTE: added by Martin Gasser
+	rv.push_back("sv:_builtin:tonalchange"); //!!!
     return rv;
 }
 
@@ -99,6 +103,11 @@
 	return new ZeroCrossing(inputSampleRate); //!!!
     }
 
+	// NOTE: added by Martin Gasser
+    if (label == "tonalchange") {
+	return new TonalChangeDetect(inputSampleRate); //!!!
+    }
+
     std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Unknown plugin \"" << identifier.toStdString() << "\"" << std::endl;
     
     return 0;