summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_audio_analysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/nodes_audio_analysis.cpp')
-rw-r--r--rotord/src/nodes_audio_analysis.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/rotord/src/nodes_audio_analysis.cpp b/rotord/src/nodes_audio_analysis.cpp
index 2c3abef..e80582a 100644
--- a/rotord/src/nodes_audio_analysis.cpp
+++ b/rotord/src/nodes_audio_analysis.cpp
@@ -117,6 +117,11 @@ namespace Rotor{
//score the results (ie 1st place, 2nd place) to end up with a set of integer numbers
+ //for (auto a:analysers) a.second.cleanup(); //WHY NOT WORK - its as if the call is const
+ analysers["segmenter"].cleanup();
+ analysers["tempo"].cleanup();
+ analysers["intensity"].cleanup();
+
//combine with similarity numbers
// 1. count similarity numbers
multiset<int> similarities;
@@ -126,10 +131,6 @@ namespace Rotor{
}
for (auto s:similarities) cerr<<"group "<<s<<" count: "<<similarities.count(s)<<endl;
- //for (auto a:analysers) a.second.cleanup(); //WHY NOT WORK - its as if the call is const
- analysers["segmenter"].cleanup();
- analysers["tempo"].cleanup();
- analysers["intensity"].cleanup();
cerr<<analysers["segmenter"].features.size()<<" segments"<<endl;
cerr<<analysers["tempo"].features.size()<<" tempo features"<<endl;
cerr<<analysers["intensity"].features.size()<<" intensity features"<<endl;