# HG changeset patch # User Chris Cannam # Date 1215609967 0 # Node ID ddb6dd22dac25cc45a7fa1ae00efe6d3ba48126e # Parent 853bed2e1faae8f5e362591234c597c24ce6b56d * Hang on, the key strength output really should be OneSamplePerStep diff -r 853bed2e1faa -r ddb6dd22dac2 plugins/KeyDetect.cpp --- a/plugins/KeyDetect.cpp Wed Jul 09 13:24:51 2008 +0000 +++ b/plugins/KeyDetect.cpp Wed Jul 09 13:26:07 2008 +0000 @@ -252,9 +252,8 @@ d.hasFixedBinCount = true; d.binCount = 25; d.hasKnownExtents = false; - d.sampleRate = osr; d.isQuantized = false; - d.sampleType = OutputDescriptor::VariableSampleRate; + d.sampleType = OutputDescriptor::OneSamplePerStep; for (int i = 0; i < 24; ++i) { if (i == 12) d.binNames.push_back(" "); int idx = conversion[i]; @@ -328,8 +327,7 @@ if (i == 12) ksf.values.push_back(-1); ksf.values.push_back(keystrengths[conversion[i]-1]); } - ksf.hasTimestamp = true; - ksf.timestamp = now; + ksf.hasTimestamp = false; returnFeatures[3].push_back(ksf); return returnFeatures;