diff plugin/FeatureExtractionPluginFactory.cpp @ 19:a7ed14263fe4

* Add Chromagram plugin, and make a number of fixes to the dense 3d model and colour 3d plot class to accommodate it * Add pitch-conversion methods in base/Pitch * Commit previously overlooked Command.cpp
author Chris Cannam
date Wed, 01 Feb 2006 14:49:49 +0000
parents d86891498eef
children 838652cc31e6
line wrap: on
line diff
--- a/plugin/FeatureExtractionPluginFactory.cpp	Tue Jan 31 17:19:45 2006 +0000
+++ b/plugin/FeatureExtractionPluginFactory.cpp	Wed Feb 01 14:49:49 2006 +0000
@@ -11,6 +11,7 @@
 #include "PluginIdentifier.h"
 
 #include "plugins/BeatDetect.h" //!!!
+#include "plugins/ChromagramPlugin.h" //!!!
 #include "plugins/ZeroCrossing.h" //!!!
 
 #include <iostream>
@@ -64,6 +65,7 @@
 {
     std::vector<QString> rv;
     rv.push_back("sv:_builtin:beats"); //!!!
+    rv.push_back("sv:_builtin:chromagram"); //!!!
     rv.push_back("sv:_builtin:zerocrossing"); //!!!
     return rv;
 }
@@ -89,6 +91,10 @@
 	return new BeatDetector(inputSampleRate); //!!!
     }
 
+    if (label == "chromagram") {
+	return new ChromagramPlugin(inputSampleRate); //!!!
+    }
+
     if (label == "zerocrossing") {
 	return new ZeroCrossing(inputSampleRate); //!!!
     }