changeset 37:838652cc31e6

MacOS fixes, TonalChangeDetector added
author Martin Gasser
date Fri, 03 Mar 2006 16:32:45 +0000
parents 935a2419a77c
children a6b2128eed56
files base/View.cpp plugin/FeatureExtractionPluginFactory.cpp
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/base/View.cpp	Thu Mar 02 16:58:49 2006 +0000
+++ b/base/View.cpp	Fri Mar 03 16:32:45 2006 +0000
@@ -23,6 +23,7 @@
 
 #include <iostream>
 #include <cassert>
+#include <math.h>
 
 //#define DEBUG_VIEW_WIDGET_PAINT 1
 
--- 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;