Mercurial > hg > qm-vamp-plugins
changeset 73:ddb6dd22dac2
* Hang on, the key strength output really should be OneSamplePerStep
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 09 Jul 2008 13:26:07 +0000 |
parents | 853bed2e1faa |
children | 3d16c2f1998a |
files | plugins/KeyDetect.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;