diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-09 17:36:33 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-09 17:36:33 +0000 |
| commit | 0b63fd4e7b1bcda9830c2304284ea2daf4073db3 (patch) | |
| tree | c85014b49b797f0853110abafff25160b73e403b /rotord/src | |
| parent | 80319aa419fa0556010b7c44b3ef096e369c1212 (diff) | |
starting similarity-intensity-segmenter
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.cpp | 9 |
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; |
