Mercurial > hg > nnls-chroma
comparison NNLSBase.cpp @ 92:a76598852303 matthiasm-plugin
resolved
author | matthiasm |
---|---|
date | Thu, 02 Dec 2010 22:24:20 +0900 |
parents | b56dde3417d4 |
children | 12cdf228c47d |
comparison
equal
deleted
inserted
replaced
91:b56dde3417d4 | 92:a76598852303 |
---|---|
37 m_lengthOfNoteIndex(0), | 37 m_lengthOfNoteIndex(0), |
38 m_meanTunings(0), | 38 m_meanTunings(0), |
39 m_localTunings(0), | 39 m_localTunings(0), |
40 m_whitening(1.0), | 40 m_whitening(1.0), |
41 m_preset(0.0), | 41 m_preset(0.0), |
42 m_useNNLS(1), | 42 m_useNNLS(1.0), |
43 m_useHMM(1), | 43 m_useHMM(1.0), |
44 m_localTuning(0), | 44 m_localTuning(0.0), |
45 m_kernelValue(0), | 45 m_kernelValue(0), |
46 m_kernelFftIndex(0), | 46 m_kernelFftIndex(0), |
47 m_kernelNoteIndex(0), | 47 m_kernelNoteIndex(0), |
48 m_dict(0), | 48 m_dict(0), |
49 m_tuneLocal(0), | 49 m_tuneLocal(0.0), |
50 m_doNormalizeChroma(0), | 50 m_doNormalizeChroma(0), |
51 m_rollon(0), | 51 m_rollon(0.0), |
52 m_boostN(1.1), | 52 m_boostN(1.1), |
53 m_s(0.7), | 53 m_s(0.7), |
54 sinvalues(0), | 54 sinvalues(0), |
55 cosvalues(0) | 55 cosvalues(0) |
56 { | 56 { |
57 if (debug_on) cerr << "--> NNLSBase" << endl; | 57 if (debug_on) cerr << "--> NNLSBase" << endl; |
58 | |
59 // make the *note* dictionary matrix | 58 // make the *note* dictionary matrix |
60 m_dict = new float[nNote * 84]; | 59 m_dict = new float[nNote * 84]; |
61 for (unsigned i = 0; i < nNote * 84; ++i) m_dict[i] = 0.0; | 60 for (unsigned i = 0; i < nNote * 84; ++i) m_dict[i] = 0.0; |
62 dictionaryMatrix(m_dict, 0.7); | 61 dictionaryMatrix(m_dict, 0.7); |
63 } | 62 } |