# HG changeset patch # User Martin Gasser # Date 1141403565 0 # Node ID 838652cc31e644304f7c2b7ae0b514a6a2fd0a69 # Parent 935a2419a77cf370428c9772dbccdde81acd2628 MacOS fixes, TonalChangeDetector added diff -r 935a2419a77c -r 838652cc31e6 base/View.cpp --- 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 #include +#include //#define DEBUG_VIEW_WIDGET_PAINT 1 diff -r 935a2419a77c -r 838652cc31e6 plugin/FeatureExtractionPluginFactory.cpp --- 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 @@ -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;