Mercurial > hg > nnls-chroma
changeset 83:3277f6cef3fe consonance
added consonance output
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Mon, 15 Nov 2010 13:19:56 +0900 |
parents | e8ceb7d3bd4f |
children | 05e6b8a2fdcd |
files | NNLSChroma.cpp NNLSChroma.h |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/NNLSChroma.cpp Mon Nov 15 11:01:56 2010 +0900 +++ b/NNLSChroma.cpp Mon Nov 15 13:19:56 2010 +0900 @@ -171,6 +171,21 @@ list.push_back(d6); m_outputBothChroma = index++; + OutputDescriptor d7; + d7.identifier = "consonance"; + d7.name = "Consonance estimate."; + d7.description = "A simple consonance value based on the convolution of a consonance profile with the semitone spectrum."; + d7.unit = ""; + d7.hasFixedBinCount = true; + d7.binCount = 1; + d7.hasKnownExtents = false; + d7.isQuantized = false; + d7.sampleType = OutputDescriptor::FixedSampleRate; + d7.hasDuration = false; + d7.sampleRate = (m_stepSize == 0) ? m_inputSampleRate/2048 : m_inputSampleRate/m_stepSize; + list.push_back(d7); + m_outputConsonance = index++; + return list; }