Mercurial > hg > nnls-chroma
diff NNLSBase.cpp @ 89:7af5312e66f8 matthiasm-plugin
new boost N parameter in chordino, chord dictionary loaded on initialisation (not construction) of plugin
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Wed, 01 Dec 2010 23:08:55 +0900 |
parents | e5c16976513d |
children | b56dde3417d4 |
line wrap: on
line diff
--- a/NNLSBase.cpp Wed Dec 01 21:18:49 2010 +0900 +++ b/NNLSBase.cpp Wed Dec 01 23:08:55 2010 +0900 @@ -30,6 +30,7 @@ NNLSBase::NNLSBase(float inputSampleRate) : Plugin(inputSampleRate), + m_frameCount(0), m_logSpectrum(0), m_blockSize(0), m_stepSize(0), @@ -38,6 +39,8 @@ m_localTunings(0), m_whitening(1.0), m_preset(0.0), + m_useNNLS(1), + m_useHMM(1), m_localTuning(0), m_kernelValue(0), m_kernelFftIndex(0), @@ -46,9 +49,8 @@ m_tuneLocal(0), m_doNormalizeChroma(0), m_rollon(0), + m_boostN(1.1), m_s(0.7), - m_useNNLS(1), - m_useHMM(1), sinvalues(0), cosvalues(0) { @@ -238,6 +240,10 @@ return m_rollon; } + if (identifier == "boostn") { + return m_boostN; + } + if (identifier == "tuningmode") { if (m_tuneLocal) { return 1.0; @@ -280,6 +286,10 @@ m_useHMM = value; } + if (identifier == "boostn") { + m_boostN = value; + } + if (identifier == "tuningmode") { // m_tuneLocal = (value > 0) ? true : false; m_tuneLocal = value;