diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-09 17:34:33 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-09 17:34:33 +0000 |
| commit | 80319aa419fa0556010b7c44b3ef096e369c1212 (patch) | |
| tree | 1935c5672e021cf01684da0a1b33fe4145b7ce50 /rotord/src | |
| parent | c451247163038c8889c14fabc674c20342637035 (diff) | |
starting similarity-intensity-segmenter
Diffstat (limited to 'rotord/src')
| -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(); |
