diff options
Diffstat (limited to 'rotord')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rotord/src/nodes_audio_analysis.cpp b/rotord/src/nodes_audio_analysis.cpp index a6aa4ec..2c3abef 100644 --- a/rotord/src/nodes_audio_analysis.cpp +++ b/rotord/src/nodes_audio_analysis.cpp @@ -116,6 +116,16 @@ namespace Rotor{ //add tempo and intensity according to a weighting //score the results (ie 1st place, 2nd place) to end up with a set of integer numbers + + //combine with similarity numbers + // 1. count similarity numbers + multiset<int> similarities; + + for (auto f:analysers["segmenter"].features) { + if (f.second.values.size()) similarities.insert(f.second.values[0]); + } + 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(); |
